Forums

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

Help with Automation - add label where custom field changes from specific text (supplier name)

Ben W October 19, 2020

Hi all,

Any help with the following would be appreciated. I want to insert a label whenever a custom field (supplier name) changes from a specific supplier to anything else. I have got:

When field value changes for (supplier) ...

If supplier equals X ...

Then Edit Issue Fields (Labels)

However, this only inserts the label when the supplier name changes TO the supplier in question. I need a way of triggering the label insertion when supplier name changes FROM this supplier to someone else. 

Thanks. 

1 answer

1 accepted

0 votes
Answer accepted
Guilhem Dupuy
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.
October 19, 2020

Hello,

You can access the previous supplier name using the Smart Value {{fieldChange.from}}, that you can use in a JQL condition for instance.

Let me know if it helped or not,

Guilhem

Ben W October 19, 2020

Thanks @Guilhem Dupuy 

I can insert a condition 'If issues matches JQL' but I'm failing to format the JQL correctly.  The custom field is called Supplier. So I'm thinking it should be {{SupplierChange.fromSupplierName}}. Any further help much appreciated. Thanks. 

Guilhem Dupuy
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.
October 21, 2020

The smart value which returns the changed value is {{fieldChange.from}} independently of the name of your field.

However, this smart values returns the raw value, if you want it to display a specific type like a String for instance you should rather use {{fieldChange.from}} 

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