The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
in the past we used the JQL Script Function linkedIssuesOf() to find Issues in certain Epics or Epics of certain Issues. In a newer version of the Script JQL Functions, it seems like there are some more convenient functions introduced (IssuesInEpics() and epicsOf()) to achieve the same result:
issuefunction in linkedIssuesOf(SUBQUERY, "is Epic of") issueFunction in issuesInEpics(SUBQUERY)
issuefunction in linkedIssuesOf(SUBQUERY, "has Epic") issueFunction in epicsOf(SUBQUERY)
Does those new functions have a better performance than the linkedIssuesOf() function? Does it make sense to migrate all existing Filters to use the new Functions?
No - performance will be identical. If one way was faster we'd do a migration job, or at least encourage people to change them manually. (You could probably verify they have similar performance characteristics using the provided profiler).
My advice would be to use epicsOf etc going forwards, as it's more intuitive and has a simpler syntax, but no need to migrate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thanks for sharing. Having some doubts here. How come these queries are bringing for my project different results
Was under the impression that the linkedIssuesOf would bring all related issues (no matter what the relation), while setting a relation parameter ("is epic of") should only narrow down the results?
Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The 2-nd paramter of linkedIssuesOf is optional. If omitted the function returns all kind of issue links.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's what the documentation says ("With no link name argument, will search for the linked issues whatever the link type"), but as per ALam7, that's not what I get. I only get all the epic's children if I include "is epic of".
My interpretation is that "is epic of" is implemented as a special case for 'link name', given it is actually a different kind of link within Jira itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to run the (IssuesInEpics() and epicsOf()) functions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prabhakaran,
both functions are very well documented in the Adaptavist Wiki, including examples:
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_epicsof
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_issuesinepics
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity. Atlassian:...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.