Forums

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

How to extract characters from summary using JSON and update a custom field?

Dana Grahf February 3, 2021

Ticket SummaryzCDS.PROD-API-Submit-PayrollValidationTool Completed - Payroll Validation to be Reviewed

Use Case

I am trying to extract CDS from the summary - currently using  {{issue.summary.substring(1,4)} which returns CDS 

Now trying to take CDS and update the custom field Client Code with the CDS value.

Here is what I currently have...

Automation Additional Field Code using the Edit Issue
"fields": {
"Client Code": {{issue.summary.substring(1,4)}
}

1 answer

1 accepted

0 votes
Answer accepted
Gareth Cantrell
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.
February 6, 2021

@Dana Grahf you should be able to select your "Client Code" field from the "Choose fields to set" dropdown and then use the smart value function directly, rather than using the advanced field editor as in the below example screenshot:

Screenshot 2021-02-06 at 15.41.03.png

Dana Grahf February 12, 2021

Thanks Gareth - that did the trick

Like Gareth Cantrell likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events