Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira Smart Value - get rid of asset key

I am using the assets section of JSM and a custom field (assets object) named Hardware Affected and Software Affected to reference those assets in our issues.

I am using the automation tool in JSM to edit the summary field for all issue types:

{
"fields": {
"summary": "{{issue.location}} - {{issue.Request Type.requestType.name}} : {{issue.Software Impacted}}, {{issue.Hardware Impacted}}"
}
}
}

This is the output:

Hill - Request New Feature : Angel (MHL-67), ACAS (MHL-86), NAS (MHL-45)

I want to get rid of the asset key (MHL-XX)

I am wondering what I need to change to get the output to this:

Hill - Request New Feature : Angel, ACAS, NAS

 

image.png

image.png

1 answer

0 votes
Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 22, 2022

Hi Maggie,

I'm going to hazard a guess here because I need to see how the objects that you have for Software Impacted and Hardware Impacted fields are set up, but I think you man need to just append the .name or the attribute that references the name?

So your line would look like

"summary": "{(issue location]} - {{issue.Request Type.requestType .name}] : {issue.Software
Impacted.name}}, {issue.Hardware Impacted.name))"

Thank you for getting back to me so quickly @Robert Wen_ReleaseTEAM_ 

I attempted to put .name at the end of those two with no success. I attached some more info, hopefully this helps.

 

image.pngimage.pngimage.png

Robert Wen_ReleaseTEAM_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 23, 2022

Hi @Maggie Rivard 

See if capitalizing the N in Name works.  That should conform to the way it's specified in this instruction: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/

Same here - with .Name nothing is shown, without name it shows <Name> (<key>). Looks like a bug in documentation.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events