Forums

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

Trying to extract info from the description field to drive adding components using Automation

Mike Monk
Contributor
October 18, 2022

We are trying to determine if certain values appear within a specific string in the JIRA ticket description and then adding relevant components to the ticket. We are able to action this and add a single component but this then gets overwritten with the next value rather than adding to the list. Having searched the web there is a suggestion that there should be a "copy from current issue" component that could be added to copy over but this doesn't appear to be available to us.

The Copy from Issue component below is not present in our instance of Jira Automation

"Edit issue" action in Jira automation. The "Components" field is selected, containing "Copy from issue" and "Component 2".

 

1 answer

1 accepted

2 votes
Answer accepted
Jack Brickey
Community Champion
October 18, 2022

Hi @Mike Monk ,

I am a bit perplexed why you can't achieve what you show based upon this article but I too could not. 

 

however try using this JSON instead...

{
"update": {
"components" : [
{
"add": {
"name":"OS"}
}
]
}
}
Jack Brickey
Community Champion
October 18, 2022

Please note that you will need to replace the "OS" with your desired value.

Like Mike Monk likes this
Mike Monk
Contributor
October 18, 2022

Hi Jack, 

That was the article I had found and was also unsure why we didn't have the option, but your JSON code works perfectly, thanks very much for the assistance

Like Jack Brickey likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events