Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • How to define the Inline script for a field to give result as concatenation of other fields existing as Checkboxes.

UFT integration with JIRA to extract test details

Radhakrishna Thammaiah
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 31, 2016

Hi Team, we are looking for UFT integration with JIRA to extract test case details and defect associated to Test case into Excel file. Please help us with process and code.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 9, 2015

Which scripting addon are you using?

Tanishka Chotwani
February 10, 2015

Script Runner

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 10, 2015

The basic code you need is issue.getCustomFieldValue(componentManager.getCustomFieldManager().getCustomFieldObjectByName("MySelect")) For a check-box, that will return an array of possible values, which you can then iterate through to concatenate, then you'll need to repeat that for each of your 27 checkbox fields.

Tanishka Chotwani
February 10, 2015

Is this the default? I assume componentManager is the field name here. What do the other 2 do? getCustomFieldManager().getCustomFieldObjectByName("MySelect")

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 10, 2015

No, the field name is "MySelect". componentManager is the manager class you need to use to get a handle on the fields

Suggest an answer

Log in or Sign up to answer