Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically Set Due Date based upon rule

Abinash Satapathy December 9, 2018

I want to fill Due date automatically based on a rule.

For ex: If Issue is created in the Month of August then Due Date will be 3rd Of Next Month i.e 3rd September.

In general Due date should be 3rd of Next Month

Please suggest how to acheive this rule using groovy 

 

1 answer

0 votes
Ismael Jimoh
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.
December 9, 2018

Well consider using scriptrunner to do the calculations once the issue is created and update the due date.

How

1. Add a post function to the workflow.

2. Calculate the due date based on created date.

3. Update the due date field based on the calculation.

4. Position the post function last in the create issue transition so it occurs after an issue is created.

 

Alternatively, you can also ise scriptrunner event listener and a similar code for it.

 

Hope the suggestion helps get you started.

Abinash Satapathy December 14, 2018

Hello @Ismael Jimoh ,

Thanks i implemented it using script runner .

 

Thanks

Abinash

Parvez Misarwala
Contributor
September 9, 2020

Dear Abinash

 

Can you share the script please

Suggest an answer

Log in or Sign up to answer