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
Using {{issue.customfield_xxxx.summary}} works to remove the Asset key, as found in this post:
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))"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for getting back to me so quickly @Robert Wen_Cprime_
I attempted to put .name at the end of those two with no success. I attached some more info, hopefully this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here - with .Name nothing is shown, without name it shows <Name> (<key>). Looks like a bug in documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a similar problem to this. Have you found a solution in the meantime and/or has the bug already been reported in the atlassian bug tracker?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Redaktion User Looks like there is no other way than using text functions, e.g. regexp replace
Hello World!
{{issue.summary.replaceAll("(lo)","xx$1yy")}} -> Helxxloyy World!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.