You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi all!
We are trying to create an automation with little success... These are the conditions.
We have Project A and Project B. When a issue is linked with another issue in the other project we need to:
1- Check issue dates.
2- If "Due Date" in Project B issue is furthest than "Due Date" in Project A, copy that "Due Date" in the Project A issue.
Thank you for your help!
Hi @GGS -- Welcome to the Atlassian Community!
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
I assume by checking dates for "furthest" you mean relative to {{now}}. Have you tried using the date/time functions and diff(), perhaps with an advanced compare condition:
https://confluence.atlassian.com/automation/jira-smart-values-date-and-time-993924864.html
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.
Which issue(s) are you trying to edit for the due date: the trigger issue or each linked issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We want to edit the issues with Issue Type Requirement or Requirement interface when an issue is linked to them in case the due date of the other issue is furthest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case, the edit cannot be inside of the branch as it will edit the linked issue. And so your rule will need another approach to find the latest due date...
For your Jira version, do you have the Lookup Issues action?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh, I see...
Yes, we have the Lookup Issues for JQL! But I'm not sure how can we use it to solve the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For your scenario, you would would use JQL to find any linked issues of the trigger issue. Once those are found the min or max functions of lists could be used, probably eliminating the need for the branch.
One key question: which due date field do you want to update? Is it the one for the trigger issue only?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much Bill for your help, really appreciated.
We want to update the field of the issue in Project A. The one who triggers the automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case, please consider updating your rule like this...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bill.
As always, thank you very much for your answer. This is what we have done:
But JIRA does not recognize the linked issue as one with greater duedate
Thank you for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That audit log shows the Lookup Issues action found no issues for the JQL or that the field was not found.
I wonder if the Due Date is supported yet for Lookup Issues with Jira Server / Data Center. When that action was first added for Jira Cloud, only a few fields were supported; later Atlassian added the remainder of them about a year later.
The check for this is to write this to the audit log after the Lookup Issues action:
{{lookupIssues.duedate.max}}
If the field is not present, another approach will be needed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much for your help Bill. Apparently it was a problem with a custom field with the same name u.u
Thank you it works now!
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.