Not able to update multiple fields from issue creation via email

chris cawley
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 26, 2024

Looking to have email set fields in ticket creation.

I can update a field, but not multiple ones.

 

Scotch: Test

Type: Bug

Priority: High

 

{ "fields": { "Issue Type": { "name": "{{issue.description.match("Type: (.*)")}}" } "Priority": { "name": "{{issue.description.match("Priority: (.*)")}}" } } }

1 answer

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 26, 2024

Hi @chris cawley -- Welcome to the Atlassian Community!

Where are you trying to use that JSON expression?  Is that for an automation rule? 

If so, please post an image of your entire rule, the action where that JSON is used, and the audit log details showing the rule execution.

 

Also, there are a few problems with the JSON:

  • A comma is missing between the field entries for issue type and priority
  • The expression tries to parse values using the match() function, and that could return a list of values.  Is that possible?  If not, perhaps add .first to always get a single item.
  • Using the match() function, the regular expression is within quotation marks.  But entire expression is then wrapped within more quotation marks for the field, and so likely will not work.  Instead could remove the outer quotation marks and add the asJsonString function to the end: https://confluence.atlassian.com/automation/jira-smart-values-json-functions-993924865.html

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.
TAGS
AUG Leaders

Atlassian Community Events