For the below scenario - I am trying to come up with JQL but not able to. Tried "IssueFunction" etc or referring Script Runner https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_epicsof. If anyone has any inputs for the below scenario, can you please share?
Show me all the Stories that have a Pcode “A” AND Epic Link of stories is not with Pcode “A” or with Component Value “B”
Note- Pcode and Component are Fields in both Stories and Epics
I can confirm that if you are using ScriptRunner for Jira Cloud, it does support issuesInEpics() JQL function documentation page under Enhanced Search Included Functions located here. You may kindly refer to the documentation on how to configure the JQL.
I hope this helps
Kind regards,
Kate
In terms of Scriptrunner, make sure you're following the instructions for Cloud not Server, as these do differ.
From what I understand above, you want to see:
If yes, something along these lines should work...
issueFunction in issuesInEpics("component = B OR Pcode != A") AND issuetype = Story AND Pcode = A
This is how it works:
You might need to change this slightly based on field name or field type (for the operators), but this should work!
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.