When an issuetype in a specific project is created we want that issue's key to be added to a list of issues in a custom text field. We don't want to overwrite the field but ADD this key to the list of keys in this field.
I see you can append with JSON but it's not a static value it needs to be dynamic to pull the trigger issue key. Any assistance greatly appreciated.
Hi @Katy Rupp -- Welcome to the Atlassian Community!
You could add the value after the current value.
For example, let's assume you wanted to add the trigger issue's key to the end of a description field being edited. That would look like this:
{{issue.description}}
{{triggerIssue.key}}
If this does not help, please post an image of your complete rule, an image of the Edit Issue action, and an image of the audit log details showing the rule execution. Those will provide context for the community to help.
Kind regards,
Bill
Hi @Katy Rupp
to read a current value (or several) from a custom field and then append a new one without deleting the old I use this:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
Go to Field change
{fieldChange.fromString}}
- Returns the previous value as displayed.
{fieldChange.toString}}
- Returns the new value as displayed.
I've used an if/else block to cover several conditions, but this can help you:
And
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.