Hello,
I have created a filter using a "ScriptRunner Enhanced Search" for a query that cannot be handled by a regular JQL. I need to copy a field in issues listed by this filter from some other issues. How do I use a filter in "condition" component of an automation rule?
For more details:
I have epics in project P1 linked to epics in Project P2. I want to change a field in epics in project P1 when the same field is changed in the linked epic in project P2. I have used scriptrunner to create a filter which lists where all P1 epics have epics linked in P2.
Thank you for your time and consideration!
Hi @Rghiya
I can confirm that if you want to use issueFunction you will need to create an Enhance Search filter but you can only use the ES function provided by ScriptRunner on the Enhanced Search page.
However, this does not mean that they cannot be used inside other filters or outside the ES page ( for example an automatin rule ). To do that, you may follow the steps outlined below.
Navigate to the enhanced search page and construct the filter you require using the JQL functions provided by ScriptRunner.
Save your filter and share it with the users that are required to be able to see it.
Create the JQL search and reference the saved filter using the syntax shown below which will return the results of your filter using the JQL functions provided by ScriptRunner.
filter = "<NameOfFilterHere>"
Save your JQL search in an standard Jira filter and use it where you need it.
I hope it helps.
Regards,
Joaquin F.
Hi @Rghiya
From what you describe, I do not believe you need any extended JQL capabilities provided by the addon.
Instead, a multiple-project scope automation rule could be triggered on a change to the field in one project, and then branch to the linked issues in the other project to make updates.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bill,
Thank you for the reply but normal jql does not allow "issueFunction in linkedIssuesOf" function in our Jira instance. This function allows for filtering out issues from P1 that have a link in P2. As not all P2 havelink in P1.
Let me know if you meant something else.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When an issue has a direct link to another issue, either can be accessed by the links using the built-in features of JQL (and automation rules).
You described Epics in one project are linked to Epics in another project, and so what I suggested should work.
Are you instead trying to find issues which are not directly linked? For example, the child issues of the linked issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bill,
I am looking at the value of particular field of the linked issue something like a status, or due date of the linked epic. Please let me know the built-in Jira function for doing this.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try the branch on linked issues, selecting the link types needed. If you need to filter further on a field, add a rule condition.
If that does not help, please post:
Those will provide specific context for the community to offer suggestions.
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.