Forums

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

How to auto set duedate by priority when create a issue

xinan liu
Contributor
September 13, 2015

I want to achieve this function, when create a bug, the duedate will be auto set.
If priority = S, duedate will be set to this day +3 days

If priority = A, duedate will be set to this day +5 days

If priority = B, duedate will be set to this day +8 days

If priority = C, duedate will be set to this day +10 days

How to do this?

Thanks very much!

2 answers

1 vote
Nic Brough -Adaptavist-
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.
September 13, 2015

You'll need a bit of code to do this.  I'd write a post-function (using the Script Runner) to set the date after the user posts the creation.

0 votes
Bob Swift
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.
September 14, 2015

An alternative to programming is to use an Update issues post function for each of the cases and condition the post function by using %original_priority% equaling the value. For the due date field, use a specific value of %now% and add the + days in the Due date offset in days field. You may need to be careful with date format,  Substitution variables has more on that.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events