Forums

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

How to prevent the "Updated"/"UpdateDate" field from changing when the change is due to automation

Cash Coyne
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.
January 2, 2024

I want to have an automation rule that changes a field in an issue, but I don't want the "Updated"/"UpdateDate" field changed.

The reason is that I only want the updated field to represent changes made by a user, not most automation rules.

Is there a way to do this?

2 answers

1 accepted

3 votes
Answer accepted
Dan Tombs
Community Champion
January 2, 2024

Hi @Cash Coyne

Unfortunately the actual updated field doesn't care how the update came to the issue but just reflects that there was an update.

The way I have seen teams get around this is to have an additional custom date and time field and use an automation rule to copy the time stamp into it when an actual user makes an update.

The rule would look like below.

Trigger: Issue updated.

Condition: User condition - User who triggered event - Is not in role - Atlassian-addons-project-access.

Action: Edit issue - New custom date field - {{now.jiraDateTime}}

 

Let me know what you think.

0 votes
Craig Nodwell
Community Champion
January 2, 2024

Hi @Cash Coyne as mentioned by @Dan Tombs this is not out of the box behavior.  What is the actual platform that you are working in?  Also, do you have any scripting plugins available in your instance something like Scriptrunner?  Only asking as this could help with under the hood work in capturing the date/time information that you want.

Cash Coyne
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.
January 2, 2024

@Craig Nodwell , I have considered a solution like @Dan Tombs recommended, but if you have another one, I'd like to hear it.  We have scriptrunner and are running in Jira Cloud.

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.
January 2, 2024

You could replicate the Automation rule @Dan Tombs gave us with Scriptrunner.

There's a script that would be easily modifiable to set a date over at https://library.adaptavist.com/entity/calculate-custom-field-on-issue-update?tab=cloud

Like Craig Nodwell likes this

Suggest an answer

Log in or Sign up to answer