Is there any way to have a smart value get information from the parent. I want to have the child get the parents due date using smart values. I know you can set it to reflect the parents due date but i need it in smart values so i can calculate a difference
EX of what i have now:{{issue.dueDate.plusDays(issue.comment.last.body.toDate.diff(TRIGGER.duedate)).jqlDate}}
Hello @justin romeo ,
Did you get this working? I am actually looking for exactly the same functionality. Is there anyway you can provide me the exact automation you set up for this purpose. Your help is greatly appreciated.
Thanks
Hi @justin romeo -- Welcome to the Atlassian community!
Short answer: probably yes.
Longer answer:
Can you give more details on the expected flow of your rule? If the parent is the thing triggering, you can use {{triggerissue.duedate}}
If you are triggering from a child changing, moving up to the parent, and then back down to the sibling children, you might need two rules because you cannot nest branching...
Or to do in in one rule:
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Bill Sheboy ,
Thank you for responding. Im trying to make it that when a parents due date changes the children's due date change by that same amount.
So my thought process was to save the parents current due date as a comment, then re fetch the issue data, then make the children change their due date by referencing that comment and the parents current due date.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, and thanks for clarifying. So...
Correct?
First thing, I wouldn't use a comment for storing the value. Instead consider adding a custom field of date/time type; maybe Last Due Date. It will save problems of conversion. Otherwise, your approach should work.
After you have tried this, using the comment or custom field storage, what issues are you seeing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah a custom field would be better, not completely use to jira yet. And that was my only issue so i think i can do it now.
Thank you, ill let you know if i hit more issues :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @justin romeo - Did you ever get this working?
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.