Forums

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

Automation to Copy Asset Fields data to Summary

Manoj Gangwar
Community Champion
August 2, 2023

I created an automation and its working fine. But the issues is, it is copying the Asset fields value but also copying the Asset field Key. 

I want to copy only the value.

In Automation Summary I am using the below:

Asset Remediation - {{issue.customfield_32400}} - {{issue.customfield_31611}}

And getting Result below:

Capture.PNG

But I don't want the keys included with Value. (AMDB-1329187) and (RQMS-125617)

Could you please suggest?

2 answers

2 accepted

2 votes
Answer accepted
Manoj Gangwar
Community Champion
August 3, 2023

Hi @Joseph Chung Yin ,

 

I figured it out. It works when i tried {{issue.customfield_xxxx.summary}}

Screen Shot 2022-02-14 at 9.26.04 AM.png

Joseph Chung Yin
Community Champion
August 3, 2023

@Manoj Gangwar -

Thanks for sharing your information.  It was interesting that "summary" in automation give you the name of your object without the the key information.

Can you share the URL documentation reference?

Best, Joseph

1 vote
Answer accepted
Joseph Chung Yin
Community Champion
August 2, 2023

@Manoj Gangwar -

Give this a try that I know this works in the Cloud env-

{{issue.customfield_32400.Name}}

Hope this helps since it looks like you have created custom field for your JSM env that pulls from your Assets schema.

I have not try this in the server env.  I will let you know.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.

Manoj Gangwar
Community Champion
August 2, 2023

Hi @Joseph Chung Yin ,

I already tried it but it didn't work. 

Joseph Chung Yin
Community Champion
August 2, 2023

@Manoj Gangwar -

I know that works in the Cloud env (as I mentioned in my original comment).  Stay tuned as I am trying to get more information for the Server env.

With my other processes against the Server/DC env, I know that the object key is all being return when one accessing the custom field on the backend (i.e. scripts/automation etc...)

Best, Joseph

Like Manoj Gangwar likes this
Joseph Chung Yin
Community Champion
August 3, 2023

@Manoj Gangwar -

I also found this via the Smart Values documentation reference page - https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#Smartvaluesgeneral---issue.InsightField--

It was interesting that they didn't provide example output when using summary attribute against an insight field.

2023-08-03_8-02-12.png

I am glad you found the answer for your question.

Best, Joseph

Like Manoj Gangwar likes this
Manoj Gangwar
Community Champion
August 3, 2023

Yeah, but it works 😀. Thanks 

Suggest an answer

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

Atlassian Community Events