Script Runner how to query custom fields for JIRA Cloud

Darren Xie November 6, 2017

Hello,

We use the Zephyr for JIRA Cloud to manage test cases. But the query is not good enough. So I'm looking help from the Script Runner.

 

We have a JIRA project called "MANAGE".
We have several test cycles (like option for a custom field) for this project.
We have about 1400 TEST (issues) in this project.
We have a JIRA checkbox custom field called "Automated".
We have about 459 TEST which are with the value "Automated" in the custom field "Automated".
Now we want to figure out, how many TEST not Automated in test cycle "Manage 4.3 RMT 1"?
E.g.
project = "MANAGE" AND issuetype = Test AND Automated = "Automated" and
cycleName = "Manage 4.3 RMT 1"

This query does not work, because:

1. by the normal JIRA search function, can search custom field but could NOT search "Cycle Name"
2. by the Search TEST page, , can search custom field but could NOT search "Cycle Name"
3. by the Search TEST Execution page, , can NOT search custom field but could search "Cycle Nam"

 

In this case, how can Script Runner query out issues against both the custom field "cyclename" and "Automated"?

 

Appreciate any help on this!

 

Thanks,

Darren

1 answer

0 votes
Praveen November 10, 2017

Hi Darren,

You can try inputting the custom field ID instead of the name in the Advanced search like

cf[100XX] i= "Manage 4.3 RMT 1"

Darren Xie September 9, 2018

Hum,

 

The "Cycle Name", "Test Executions" fields are from the plugn Zephyr for Cloud, and these custom fields are not managed in the usual Custom Fields section. So could not find out the custom field ID.

 

And seems the native JIRA Advanced search does not support the fields from Zephyr.

 

What a pity.

Suggest an answer

Log in or Sign up to answer