Hi, I am using Jira Cloud + Plans + Scriptrunner and struggling with a query that returns parents of epics. Here is my example:
Initiative-123
Initiative-987
I was trying hard to write a query based on the custom field 'Planned' on the epic returns all initiatives.
Here are my tries that do not return anything:
issuetype = Initiative AND issueFunction in linkedIssuesOf("Planned = 'YES'", "is Epic of")
issueFunction in parentsOf(...)
If you have any ideas, please let me know
I got the answer from Adaptavist - it is not possible to achieve it on the Jira Cloud due to API limitations, but it works in Jira Server. However, there is a feature request that you can all vote to make it happen:
I will definitely vote for that request! Thank you for posting what you found out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be on the right track with the "parentsOf" function. Since the Initiatives are parents of the Epics, try something like this:
issueFunction in parentsOf("issuetype = Epic AND 'planned' = "YES")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is the thing, it does not work. I even tried to use
issueFunction in parentsOf("key = Epic-345")
with 0 results.
Given that I believe it should work and you confirmed my thinking there is one more issue that can cause this problem:
Adaptavist support suggests that a likely cause is a conflict in function names between multiple Jira add-ons
It was posted for Jira Server but I guess a similar issue might be applicable to Jira Cloud. In the meantime I will reach out to the Adaptavist support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Szymon F If you are in Jira software premium plan please try to search child epics of initiatives rather than try searching parents of epics by using the below query:
issuekey in portfolioChildIssuesOf("Initiative Key") AND type in (Epic)
issuekey in portfolioChildIssuesOf("ABC-123") AND type in (Epic)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This will not give me the results that I need. The CF is on the epic but I am interested in the Initiative list.
Anyway, thank you for your suggestion!
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.