Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script to calculate formula on workflow postfunction.

Can anyone please help me in writing a script to calculate below formula:

Field A = Custom date field

Field B = Custom date field

Field C = Custom date field

Field D = Custom date field

I need to calculate

Field E(Custom number field) = ((Duration between A,B)-(Duration between C,D))/(Duration between C,D)

1 answer

0 votes

Hi @U Sravani 

There are lot of examples here

You can learn how to deal with dates on this page.

Give it a try and share the code if you need help.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,304 views 22 31
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you