Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,200
Community Members
 
Community Events
176
Community Groups

Automation rule to update a custom field with value of field that was just updated

Trying to create a rule to update a custom field triggered by a field value change of another custom field value change.  The difficulty seems to arise in using changed field value as part of the updated field value.

For ex, when value changes for Field A ( i.e. custom field 10000)  I want to use this value as part of the value in the updated field (i.e. then populate custom field 20000 using that value).

So I have this in the Advanced field edit.  If I use any other custom field on the issue, this syntax works.  Only when I use the value of the field that just changed does it not work.  Is there some way I need to reference the same field on the issue that just changed in the trigger?

{
"fields": {
"customField_20000": "https://www/tools/casesystem/case/{{issue.customField_10000.value}}"

}
}

Thanks for your help in advance.

1 answer

1 vote

Hi @Lorraine Gorman 

What is the trigger for your rule?

If I assume it is Field Value Changed or Issue Updated, you could use the {{changelog}} entry for the field and {{toString}} as described here:  https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--

Kind regards,
Bill

Hi @Bill Sheboy -- thanks for responding to my question.  I struggle with smart values, JSON, etc., looks promising - I will try changelog.  Yes, the field value changed is what I'm using for the trigger and it's the custom field I want to use to populate the other custom field.  Just quick question, it looks like the changelog properties are limited to Summary, Issuetype and Status.  Can I use it on other fields/ properties (my field is a custom field)?  It says these are the 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.

 

Regardless, I will take a look, thanks for the pointer.  I'll post after some attempts and let you know if I can get it to work. 

Hi, Lorraine!

If a field is supported by rules, it most likely is supported by changelog also.  I recommend trying your field to see what happens.

And...smart values are name, spacing, and case-sensitive, so if you are in doubt of the smart value for your custom field, please use this how-to article to confirm the name and if it is supported by rules: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

Like # people like this

Suggest an answer

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

Atlassian Community Events