Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Help needed for JQL

 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

2 answers

Hi @Ankit Mahajan 

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:

  • All Stories with Pcode "A"...
  • That are children of Epics which...
  • Do not have a Pcode of "A" OR...
  • Have a component of "B"

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:

  • The function issuesInEpics will show all children of any Epic which satisfies the subquery.
  • The subquery in the brackets searches against all Epics, based on the relevant search parameters.
  • The and Pcode = A refines the results based on the parameters referring to Story-level

You might need to change this slightly based on field name or field type (for the operators), but this should work!

Ste

Hi @Ankit Mahajan 

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Confluence

⚡️NEW Group for Confluence Cloud Admins

Calling all Confluence Cloud Admins!  We created a new Community Group to support your unique needs as Confluence admins. This is a group where you can ask questions, access resou...

95 views 2 8
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you