• Ask a question
    • Topics
    • Questions
    • Users
  • Sign in
  • Home /
avatar image
Question by 1MarDiv · Apr 30, 2016 at 09:55 PM · defectsfieldsproject nameservicenowtasktop

Adding the project name to defects

We are trying to integrate ALM to Servicenow using Tasktop. Since we only have one project in Servicenow, but multiple projects in ALM, we were told we needed to add a field to the ALM defect with the project name. I think I am overthinking this. Is there an easy way to do this (as it is displayed in the project itself, along the top of the ALM window)...?

Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by jefptman · Apr 30, 2016 at 10:00 PM

There is a field that is setup as a dropdown list labeled “project”.

http://screencast.com/t/QIUKaq008

http://screencast.com/t/6eGtVdOLQR

This dropdown list however is blank by default in Customization --> Project Lists

http://screencast.com/t/msrtxdDzgds

you would have to manually add your projects to the list then you could go through all the defects and select the correct project and any new projects would need to be manually added to this list.

The other option would be to add a custom field and then use the workflow to pull the project name from the TDConnection object

in Project customization you would need to go to project entities, click on Defects, and add a user defined field (make of note of the database column assigned (ex BG_USER_01).

Then you could go under workflow and add the following

under Defects Module Script --> Bug_New add the following

 Sub Bug_New
   On Error Resume Next
      Dim bugProject
      bugProject = TDConnection.ProjectName
      Bug_Fields.Field("BG_USER_01").Value = bugProject
   On Error GoTo 0
 End Sub
 

Under Defects Module Script --> Bug_MoveTo add the following

 Sub Bug_MoveTo
   On Error Resume Next
      Dim bugProject
      bugProject = TDConnection.ProjectName
      If Bug_Fields.Field("BG_USER_01") = "" Then
         Bug_Fields.Field("BG_USER_01").Value = bugProject
      End If
   On Error GoTo 0
 End Sub
 

Now whenever you open a new bug the workflow will automatically add the project name to the Defect and anytime you move to an existing Defect it will check the field and add the project name if needed.

Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 5 attachments (including images) can be used with a maximum of 4.2 MB each and 22.0 MB total.


Stuff we like

Orasi Software
AppDynamics

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Defect required fields do not appear in order 1 Answer

Validate the drop down values 1 Answer

Display more than 500 defects in the defects grid 1 Answer

setting fields in data-hiding is not working properly 1 Answer

Need to hide defects from previous stage from public view 1 Answer

(c) 2015 Orasi Software, Inc.


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Explore
  • Topics
  • Questions
  • Users