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

Updating Automation Rule to update More Fields of an Issue

David Clark July 18, 2024

 

To update more fields on an issue or ticket in a JIRA project using information from the description inside of an email.

 

I'm just trying to autofill more fields, like the Part Number custom field, from the details inside an email that created the issue, which has the Part Number in the email.

 

I tried this logic, but it didn't work.

{

"fields":

{ "Part#": { "name": "{{issue.description.substringBetween("Part#: ", "\n")}}" },

"Part#": "{{issue.description.substringBetween("Part: ", "\n")}}" } }

1 answer

0 votes
Manav Shah
Contributor
July 18, 2024

@David Clark can you try the below?

 

{
"fields": {
"customfield_XXXXX": "{{issue.description.substringBetween("Part#: ", "\n")}}"
}
}

David Clark July 19, 2024

That kind of worked it just updated the label add the top to put the name Part#.  

I need it to auto-populate the Part Number so that when I am in a Que, I search for a part number to see how many of that Part # to order.  

 

The info I want is in the Summary field, its just not searchable and I don't see a way in the rules automation to use the Summary field to pull data from?

Manav Shah
Contributor
July 19, 2024

@David Clark 

{{issue.summary}} to reference summary if that is what you mean 

Like David Clark likes this
David Clark July 19, 2024

Its not working.

 

 

Does it matter if the issue is created from an email?

The information is in the subject line, along with the description of the issue.  

It's not pulling part # 12345 description plug

Subject: Part#12345

Part# 12345

Description Plug.

I want it to grab Part#12345 out of the issue and put it on the label called Part # on the central Issue Page so that I can search for Part#12345

Manav Shah
Contributor
July 19, 2024

could you like screenshot your flow or something, so I can understand better?

David Clark July 22, 2024

image.png

Manav Shah
Contributor
July 25, 2024

{
"fields": {
"customfield_XXXXX": "{{issue.summary.match("Part#\d+")}}"
}
}


use custom field ID, don't use the name of field. try it once 

Suggest an answer

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

Atlassian Community Events