Forums

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

due date

Ivan Andrieiev
Contributor
November 11, 2022

Is it possible to do, the due date was calculated automatically before transferring the task to the "closed" status.

1 answer

0 votes
Jack Brickey
Community Champion
November 11, 2022

Hi @Ivan Andrieiev ,

I am not clear on your question. What do you mean by "the due date was calculated automatically"?

If you were asking whether the due date was not empty at the time the issue was closed then you could consider an automation rule that would inspect the due date field when the issue is transition to closed. If it was empty (or not empty), then you could take some action that would allow you to query later. For example, you could have a custom deal for this or simply add a label or a comment.

Ivan Andrieiev
Contributor
November 11, 2022

@Jack Brickey  Hi

I have a project where specialists create tasks for different types of absence from work. One of these types is "Hospital", the problem is that the person does not know when it will be released and would like the end date to be set exactly when the specialist changes it to closed status.

Jack Brickey
Community Champion
November 11, 2022

Easy enough...

I would recommend using an automation rule for this.

  • trigger - issue transitioned (from any status to Done)
  • condition - field compare (field is empty) this avoids overwriting the field unless that is desired in which case skip the cobdition
  • condition - any other condition to ensure you only run the action where desired
  • action - edit issue and set the due date to now

note with CMP projects you do have the alternative of using a post function within the workflow to set the due date.

Ivan Andrieiev
Contributor
November 15, 2022

@Jack Brickey  

I do not understand this 

  • condition - any other condition to ensure you only run the action where desired
Jack Brickey
Community Champion
November 15, 2022

@Ivan Andrieiev ,

It's simply means that if you have any other conditions in your requirements then be sure to add a condition component for that requirement. For example, let's say you were using labels and you only wanted this rule to execute the action if the label "special-duedate" existed on the issue. In this case you would have a condition to check if the label existed on the issue.

Ivan Andrieiev
Contributor
November 15, 2022

@Jack Brickey 

To create a smart date field, you need to enter the appropriate code, can you find this code somewhere?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events