Hi all,
I have create an automation rule to calculate Start and end time for an issue based on the earliest start and latest end from linked issues but look up issue isn't working can anyone please help me with this.
Hello @yeswanth Reddy
Welcome to the Atlassian community.
It does not appear that you have provided the complete audit log entry for the rule. Can you provide that?
I can identify one problem from what you've provided.
In the Lookup Issues action you have referenced {{triggerIssues. You have used a plural when it should be singular.
Additionally using that smart value by itself is not going to be valid JQL syntax. I suspect your audit log includes an error message about that JQL statement.
Another possible problem is your branch to Parent. Why are you shifting the focus to the parent of the issue that triggered the rule?
Hi,
I think you have a typo in the second lookupIssues block:
triggerissues.issuelink.key
There is only one triggerissue.
Hi @yeswanth Reddy -- Welcome to the Atlassian Community!
As Trudy describes, the JQL for your Lookup Issues actions is invalid, and...
Your rule seems to focus on specific link types (e.g., Blocks, Cloners, etc.) but the use of the links when creating your JQL does not check this. As a result, issues with other link types will be returned.
To solve this, you could invert your approach, and use the JQL function linkedIssues() to check by the types : https://support.atlassian.com/jira-software-cloud/docs/jql-functions/#linkedIssues--
For example:
issue IN linkedIssues( {{triggerIssue.key}}, "Blocks", "Cloners", "Duplicate", "Post-Incident Reviews", "Problem/Incident", "Relates to" )
Please adjust this to match your specific link types needed, and then test the query with an example issue to confirm it returns what you expected.
Kind regards,Bill
Thankyou, @Trudy P Claspill and @Bill Sheboy for the response i will modify and try the same and keep you informed if it helped.
hi @Dick
thankyou for the response.I have tried it but it didn't worked.
It looks like you're new here. Sign in or register to get started.