I want to calculate and update a Date field on the basis of Due Date of the Issue. Is it possible??

Srikanth Vemuluri November 29, 2022

I have two date fields in the same issue. And want to update the second field by calculating the first field date. I need like this:

Field 1 : 28/12/2022

Field 2 : It should be updated as (-1w) of Field 1.

Is it possible to do it like this?? 

1 answer

1 accepted

0 votes
Answer accepted
Patrik Korovsky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2022

Hello, @Srikanth Vemuluri,

This can be achieved by automation.

  1. Determine the trigger, when will this automation happen?
    • For example: Field value changed "Field1" -> Any change -> For all operations
  2. You can use an edit action that updates the Field2 based on Field1
    • {{issue.Field1.minusWeeks(1)}}

If your fields are custom, you will need to find their ID and use it in place of "Field1" and "Field2".

Srikanth Vemuluri November 29, 2022

Hello @Patrik Korovsky 

Thank you for your Quick Response.

It worked Perfectly. 

Patrik Korovsky
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2022

Good to hear,

I'm always happy to help.

Cheers,
Patrik

Suggest an answer

Log in or Sign up to answer