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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I would like to use this in the post function of my service desk workflow, to update a numeric field based on the two mandatory date fields that have value. Start date and End date are available. The requirement is to populate the numeric field - "Duration in years"
Hi @Thorsten Letschert _Decadis AG_ ,
I used the following formula based on your suggestion. It worked as expected. Thank you!
round(({00012}-{11604})/{YEAR})
{00012} is the system date-field "Due Date" and {11604} is a custom date-field "Start Date"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gunasekaran N ,
Assuming that you want to calculate the date difference between those two fields in years, you can try an expression like
({issue.cfEEEEE} - {issue.cfSSSSS}) / {YEAR}
where EEEEEE is the ID of your End date and SSSSS is the ID of your Start date. Add those two using the field picker, and make sure you're using the numeric value without the '%'.
Cheers,
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This was giving syntax error!
The post function that I am using is:
Update parameters of the Mathematical or date-time expression calculator Function for this transition. |
However your reply gave me a clue. Thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gunasekaran N ,
Thanks for your feedback. Could you please accept my answer then?
Cheers,
Thorsten
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.