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
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.