Forums

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

Add issue key from trigger issue to a custom text field in another issue but not overwrite

Katy Rupp
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2025

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.

2 answers

1 accepted

3 votes
Answer accepted
Bill Sheboy
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.
March 27, 2025

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

0 votes
Aaron Pavez _ServiceRocket_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 27, 2025

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:

Conditions
{{fieldChange.fromString}} does not equal Empty

 And

{{issue.customfield_10174}} equals Empty
then edit issue
{{fieldChange.fromString}}, {{fieldChange.toString}}
 Hope that helps!

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.12.16
TAGS
AUG Leaders

Atlassian Community Events