The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Nested Functions in Cloud

Xaviar Steavenson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 4, 2024

I certainly recall how to do this with ScriptRunner on prem using issuefunction but I can't seem to figure out the equivalent function or options in cloud with or without scriptrunner.

 

I've searched to no avail, so here I am!

 

I'd like to write that typical query everyone is always trying to do for roadmaps it seems. I need all epics under multiple initiatives to pull all the various projects into a roadmap...

Maybe I'm just tired and missing how simple this is now :) 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Trudy P Claspill
Community Champion
December 4, 2024

Hello @Xaviar Steavenson 

Welcome to the Atlassian community.

Why do you think you need nested functions?

You should be able to do that with the childrenOf() ScriptRunner function:

https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search/jql-functions#childrenof

 

Xaviar Steavenson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 4, 2024

@Trudy P Claspill  Thanks, the reason is I'm getting an array of Initiatives from a project with another filter.

 

i.e.

Filter 1:
Project = ID and field = "Theme"

Returns; Initiative-1, Initiative 3, Initiative-5, etc etc.

This project is only initiative types, so it returns back a list of initiatives for this specific theme as above.

I then want to get all epics across multiple projects that are attached to the list of initiatives.

 

i.e. childrenOf('filter=FilterThemeName')

As I recall this won't work -- that said, I also don't see childrenOf working in Cloud Jira with scriptrunner. This was my issue with issueFunction as it doesn't appear to work in Cloud Jira. Still muddling my way around the move to the cloud and trying to break 15+ years of habits :) 

Trudy P Claspill
Community Champion
December 4, 2024

To use ScriptRunner filtering functions in Jira Cloud you have to go to the Apps menu and select Enhanced Search. You can't use them directly in the native Jira filtering screens.

https://docs.adaptavist.com/sr4jc/latest/features/scriptrunner-enhanced-search

Screenshot 2024-12-04 at 4.49.13 PM.png

 

Screenshot 2024-12-04 at 4.49.54 PM.png

 

If you click on the + button next to the Search field you get a pop-up to help you select the correct function and validate your subquery. 

Screenshot 2024-12-04 at 4.55.53 PM.png

You may find it useful to review Adaptavist's documentation on the differences between Scriptrunner for Jira DC and for Jira Cloud.

https://docs.adaptavist.com/sr4jc/latest/scriptrunner-migration-to-cloud

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events