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 :)
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:
@Trudy 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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.