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 @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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thankyou, @Trudy Claspill and @Bill Sheboy for the response i will modify and try the same and keep you informed if it helped.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well that is good news.
But I see that it also says No Actions Performed. Is that what you expected?
Does issue D1-45 have a Parent? It seems like the Log actions in your branch were not executed, which would be an indication that the trigger issue doesn't have a parent issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We should include the check if parent link is not empty in the JQL to know for sure that the automation is capable of branching for the parent. Now we don't have that check and we are misled by the intermediate loggings of stuff that has nothing to do with the branched issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think you have a typo in the second lookupIssues block:
triggerissues.issuelink.key
There is only one triggerissue.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.