The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Mark issues with changed due date

Igor Titov
Contributor
July 31, 2024

 

Hello everybody!

I need your help, please. 

I need to create an automation rule that will be triggered under the following conditions:

When: the issue has been updated.

IF: the "due date" field is not empty and it has been changed. 

THAN: add the "deadline_changed" label to the issue.

NB! The rule should only be triggered if this field (due date) was not empty at the time it was changed.

For example:

1. The issue was created - the "due date" field was not filled in the issue.

2. The performer comes to the issue - evaluates it - puts a deadline in the "due date" field, for example, August 20, 2024.

3. In this case, the "deadline_changed" label should not be put down.

4. The performer is working on the issue and changes the value in the "due date" field on September 1, 2024.

5. In this case, automation should mark the issue with"deadline_change" label.

 

At the moment I have created this construction (in the pict.), but it does not work correctly, because the label is put down anyway (the "due date" field was filled in or was empty)

Снимок экрана 2024-07-31 в 13.59.41.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Bill Sheboy
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 Champions.
July 31, 2024

Hi @Igor Titov 

After your rule's trigger, please try adding conditions to check what is needed.

For example, you could use the changelog smart value to test if the prior value was not empty with the smart value condition: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--

Kind regards,
Bill

Igor Titov
Contributor
August 1, 2024

Hi, @Bill Sheboy !

Made this construction, but it didn't help. Or i've did something incorrect? 

Снимок экрана 2024-08-01 в 11.42.45.png

And i've checked your link and there is a comment about changelog: 

Available properties
{{changelog.summary}} - Changelog information for the Summary field.

{{changelog.issuetype}} - Changelog information for the Issue type field. 

{{changelog.status}} - Changelog information for the Status field.

Maybe this smartvalue doesn't work with the "dueDate" field ?

Igor Titov
Contributor
August 1, 2024

ok

Igor Titov
Contributor
August 1, 2024

And this doesn't  work too 

Снимок экрана 2024-08-01 в 12.15.03.png

Igor Titov
Contributor
August 1, 2024

Made this construction in smartvalue and it's finally OK!!

 

{{#changelog.dueDate}}{{fromString}}{{/}}

Like Bill Sheboy likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events