Automation to compare changes in a custom field

Denver Goldsteen February 19, 2024

Hello, 

I am trying to build an automation that compares changes to a custom field and then copies that change into the comments of a linked ticket. I have tried several methods but the rule copies all text in the custom field (not just the change).


2 answers

1 vote
Kalyan Sattaluri
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.
February 19, 2024

Hello @Denver Goldsteen 

{{fieldChange.toString}} is the final state of the field.

You havent mentioned what type of field you are watching for changes but If its a Text field, like summary or description for example, then your {{fieldChange.toString}} will be the new value. Not the delta between what was there originally vs what is new.

So you are seeing expected results.

 

 

Denver Goldsteen February 20, 2024

Hi @Kalyan Sattaluri

Thank you for your response.

Sorry, yes, I'm watching a custom text field for changes. Are you able to help with the correct smart value that will return the delta between what was there originally vs what is new? I'm quite new to this so any assistance is appreciated.

Marc - Devoteam
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.
February 20, 2024

Hi @Denver Goldsteen 

I don't think this is possible, but I'm also questioning what that will bring you.

Brainwave here:

If your text field has a string like: This is the problem

And if I think this not correct, or even simpler. I forgot the "." at then end of the sentence and I edit the field to"

This is the problem.

Then you automation will add a comment to linked issues with the value ".", as this is then change.

What is the value in this, for the members handling the linked issues?

Also related to the automation limits on an instance.

Denver Goldsteen February 20, 2024

Hi @Marc - Devoteam

The reason for this is we're trying to copy across Service/Software projects with limited JSM licenses.

In other words, the service project has a custom text field that is frequently updated with unique IDs that relate to a recurring issue, and then users on the linked (software) side are unable to view due to licensing constraints. So my thinking is to copy the new IDs (only) to the comments section on the linked software project.

The straightforward solution would be the ability to sync field changes across linked tickets/projects, but as far as I understand this isn't possible.


Marc - Devoteam
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.
February 20, 2024

Hi @Denver Goldsteen 

You can also look into to the collaboration role that is available for licensed software or work management users, to be able to see JSM issues

See what-are-user-types-and-roles 

Denver Goldsteen February 20, 2024

Thank you for your help with this. We've decided to simply copy comments across projects rather than changes to a specific field. 

Like Marc - Devoteam likes this
0 votes
Marc - Devoteam
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.
February 19, 2024

Hi @Denver Goldsteen 

Can you share the rules you created and tried?

This will help us a community members to see if we can help you improve the rule you have or how to fix your rule.

 

Denver Goldsteen February 19, 2024

Screenshot 2024-02-16 at 16.53.38.png

Denver Goldsteen February 19, 2024

also tried this with same results
Screenshot 2024-02-19 at 15.02.37.pngScreenshot 2024-02-19 at 15.03.43.png

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