Forums

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

How to update a text field with Affected Services coming from a ticket

Rupali Choudhari
Contributor
August 1, 2024

Hi, 

I have to copy the value of Affected Services to a text field 'Last Affected Service'.

I am able to copy value when a ticket is created but when we add a new Affected Service , 'Last Affected Service' field gets appended with new value. 

I am actually looking for updating the 'Last Affected Service' field with new affected service which got added.

Example 

ticket 1 created 

Affected Service - Name 1   

Last Affected Service- Name 1

 

When ticket 1 is updated with Name 2 

Affected Service -Name 1, Name 2  

Last Affected Service- Name 1, Name 2

I don't want to keep copying the value of Affected Service to 'Last Affected Service', I want to update the 'Last Affected Service' to have Name 2 and so on if I add Name 3 as affected Service?

I think I will have to edit field using JSON but not sure how? 

Please help.

1 answer

1 accepted

1 vote
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.
August 1, 2024

Hi @Rupali Choudhari 

Are you doing this with an automation rule?  If so, is the rule triggered on a change to the Affected Service field?

In that case, you could try the {{fieldChange}} smart values to use only the added ids to replace the one for Last Affected Service: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--fieldChange--

Kind regards,
Bill

Rupali Choudhari
Contributor
August 1, 2024

Thank you it worked.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events