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
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
We have the server version of Jira, so I cannot use Post-functions in the workflow, which would easily solve this... Now I have to try automation.
When any issue type is transitioned from "To Do" to "In Progress", I want the Target Start date to be set to %%CURRENTDATE%%
When any issue type is transitioned to "Done", I want the Target End date to be set to %%CURRENTDATE%%
When any issue is set to "To Do", I want target start and target end cleared.
I don't understand smart values so if that is involved, please be very detailed =)
As per the documentation on smart values for dates and times at
use the plusDays() function
Which version of Jira Server are you using, and which version of the Automation app are you using?
Have you tried to construct the rule? If so, please show us what you have so far.
Link to documentation: https://confluence.atlassian.com/automation/components-in-jira-automation-1141480614.html
The basic structure of the rule would be:
TRIGGER: Issue Transitioned
- You can specify the To and From statuses in the trigger. You would have one rule with this trigger configured for the transition from To Do to In Progress, one for the transition to Done, and one for the transition to To Do.
CONDITION: Issue Fields Condition
- You may want to add a Condition to check the Issue Type for the issue that triggered the rule. If the date fields aren't used in all issue types, then you would use this condition to check that the triggering issue is one of the Issue Types that does use the fields.
ACTION: Edit issue
- Here you would specify the field you want to set/clear and the value to set it to, or no value if this is the rule to clear the field.
If you want to set a Date only field (Date Picker) vs. a Date/Time field to the current date you would use the smart value
You can find more information about working with smart values for Date fields here:
You would use the Edit Issue action and select the field you want to set. You can see examples of smart values being used to set fields in this document, in the section for the Edit Issue action.
I haven't worked through setting these fields myself in Automation, but I found another thread where another person has asked questions about setting these fields. That might help you.
I also found this post, but they were talking specifically about Jira Server automation.
When I have time, I'll try to work on it myself and post again.
Glad to help!
Can you share your solution (in a new Answer to your own Question) and accept your Answer to help other users find posts with working solutions?