Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,301,513
Community Members
 
Community Events
165
Community Groups

Utilizing smart values in linking an issue

Edited

I have tried several suggestions from the community on utilizing a smart value to extract a value from the description and utilizing it to create a link to an issue in an automation rule.

Here is the description of my issue:

Organization: Hosted Claim System
Customer Reference # CC-3301

Env. Affected: Production
Status: GW in Progress

 

So I utilized the string between to get the value:

{{issue.description.substringBetween("Customer Reference # ","Env. Affected:")}}

I put this smart value in the "Link issue to" in the automation rule.   I'm trying to get the CC-3301 to be a linked issue to the current issue

This wasn't working, so I created a temporary jira field and used the above smart value and it put the CC-3301 in the jira custom field.

So then I used the jira custom field I created that has the CC-3301 value in it as the "Link issue to" with each of the following smart values:

{{customfield_16100}}

{{issue.customfield_16100}}

{{issue.customfield_16100.id}}

 

Then I tried utilizing Json under the edit issue "more options" to fill in the "Link issue to" fields:

{"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Relates"
},
"outwardIssue": {
"key": "{{issue.customfield_16100}}"
}
}
}
]
}
}

 

Still cannot get anything to work.  I don't understand why the 

{{issue.description.substringBetween("Customer Reference # ","Env. Affected:")}}

works to fill in the custom field, but won't work on the "Link issue to"

I'm not sure what else to try....Link issues

 

 

07/07/21 - so I tried putting some Json in the more options under Edit issue(see below) for Automation for JIra.  I put the information from the description in a custom field and automation fills in the issue key I want to link to the custom field.  Then I tried to utilize the custom field value in the link for the current issue.   I get the error (At least one of 'id' or 'key' is required to identify an issue)

Does anyone have any Ideas on how to take a value out of the jira issue description and utilize the value for creating a link for the current issue???????

{
"update": {
"issuelinks": [{
"add": {
"type": {
"name": "Relates",
"inward": "is blocked by",
"outward": "blocks"
},
"outwardIssue": {
"key": "{{issue.customfield_16100}}"
}
}
}]
}
}

 

 

1 answer

Hello!
Have you found the answer?
Very interesting case )

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Improving the Create Issue Experience in Jira Service Management Cloud

Hello everyone!  We are very excited to announce some much needed changes to the issue create experience in JSM (the blue "create" button) at the top of the screen.  We have just starte...

314 views 15 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you