Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
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

Get child issues of epics that has a certain attribute value via JQL Edited

My scenario : 

I have list of epics. One of the attributes these epcis have is "version". These epics have children issues. Children issues do not have "version" updated. Only epic has.

So what i wish to do is to write a query that will first get a list of epics that contains a specific version as value, and then list me all the child issues in the results. 

Example : show me all the child issues(stories,bugs etc) that are under epics which contains version ID 1.0.2

4 answers

1 accepted

0 votes
Answer accepted

Cannot be done without external plugins

Hi @Januka Wijesinghe  

 

I would recommend for you using JQL Search Extensions. It's a professional paid indexing service provided by a company I've partnered with.

You can use the following query to get the list of all epic children by a specific version and more reference  

issue in childrenOfEpicsInQuery("fixVersion='21.0.1'")

Thanks,

Mohamed Adel 

Hi @Januka Wijesinghe 

If you would be interested in a ready made solution, You may want to try out our plugin,

Agile Tools : Epic Tree & Time in Status 

You can get all the issues under the Epic for a release version, with its complete hierarchy and their progress.

Key features of Epic Hierarchy:

  • Epic Sum up - Roll up for Time estimates and Story Points
  • Excel like editing for key fields
  • Excel export of hierarchy data. Progress % on "remaining estimate" or "original estimates"
  • Support for custom names for Epic & Story fields
  • Epic Tree on Issue Screen
  • Custom field roll up

Along with Epic Sum, you also get 2 other important functionalities within the same plugin, Links Hierarchy and Multiple Time in Status reports (to track your issues).

Epic Hierarchy.PNG

Looks good! I will first try to see whether I can do this without external plugins and then try your plugin. 

Hi @Januka Wijesinghe 

I went on an extensive search for the same thing a little while ago and I found a solution so I thought I would share it with you here. 

Firstly, make a filter to pull out the epics which have that attribute, for example:

issuetype = Epic and fixVersion = 0.4.0

Save this filter, and take note of what this filter is called (it will have a number assigned to it which you can see in the URl when you are viewing this saved filter) e.g. filter=24123

 

Now you want to re-open a new 'search issues' window and put this into the advanced filter query (replacing the filter number with yours as well as the appropriate fix version you are searching for):

issuetype = Epic and fixVersion = 0.4.0 OR issueFunction in linkedIssuesOf("filter = 24123", "is epic of") OR issueFunction in subtasksOf("issueFunction in linkedIssuesOf('filter=24123', 'is epic of')")

What this will do is it will bring up all the epics you want to see, then it will bring up any issues linked to any of those epics directly, additionally it will bring up any subtasks of any issues which are linked to that epic directly. 

 

Let me know how you get on or if it doesn't work and I can try and help you!

Hi @Ilze Schoeman ,

Thank you for coming to my rescue. I tried the query you suggested and I am getting an error :

  • Field 'issueFunction' does not exist or you do not have permission to view it.

 

Does the command issueFunction require some plugin ?

Hi, i'm not 100% sure but can you copy and paste your whole JQL query in here and i can see what it says?

Maybe a screenshot so we can see exactly at which character the issue is occurring and whether or not the query is complete

 

Thanks

Daniel Ebers Community Leader Jun 06, 2021

@Januka Wijesingheyes, it seems it comes from Script Runner Cloud.
Could you please confirm you are indeed using Jira Cloud but not have the Script Runner App installed?

https://scriptrunner-docs.connect.adaptavist.com/jiracloud/enhanced-search.html

@Daniel Ebers 

It seems I have ScripRunner Enhanced plugin installed, I see it on my left-hand panel menu on JIRA. So the command "issueFunction" should work in my account ? But its not. 

Hi Januka, 

Yes I have this: 

Adaptavist ScriptRunner for JIRA

and we are on the server version of Jira. 

 

Sometimes my 'issueFunction' did not work but it was due to the way i was writing the query. Are you able to copy and paste the whole query including the error message? Then it might be easier to debug 

@Ilze Schoeman This is the error I get : Screen Shot 2021-06-09 at 16.03.02.png

Hi Januka, I'm sorry I don't know how to fix that :( Apologies, I didn't realise my solution was using one of the add-ons we had already. Sorry I could not help more. 

Daniel Ebers Community Leader Jun 11, 2021

@Januka Wijesinghe
according to documentation you would have to switch to the enhanced search - I cannot determine from your screenshot if you did do that.

Please have a look at this video:
https://scriptrunner-docs.connect.adaptavist.com/jiracloud/enhanced-search.html

If this should not succeed I'd encourage you to raise a request with Adaptavist.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

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