Script Runner how to query custom fields for JIRA Cloud

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

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"

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,919 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you