Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Automation: {{issue.issueType}} field returning back numerical value for Issue Type instead of text

Automation: {{issue.issueType}} field returning back numerical value for Issue Type instead of text

Cameron Falconer September 10, 2020

Hi

I've just started using JIRA Automations to alert me when a new issue is created within my project.

I'm using the field {{issue.issueType}} to provide me with the Issue Type in email format. However, when I receive the email, the Issue Type is reported as '1' instead of 'Bug', 'Story' etc.

I've used the {{issue.issueType}} the field in line with the values provided here: https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/

 

My complete automation email content is as follows:

{{reporter.displayName}} has just raised an issue.

Status: {{issue.status.name}}
Issue Type: {{issue.issueType}}
Due Date: {{issue.duedate}}
Issue URL: {{url}}

Summary:
{{issue.summary}}

Description:
{{issue.description}}

 

Actual email automation received:

Cameron Falconer has just raised an issue.

Status: Analysis
Issue Type: 1
Due Date: 2023-09-23
Issue URL: https://unicorntraining.atlassian.net/browse/SSD-27923

Summary:
Automation Test V7

Description:
test

 

Has anyone had a similar issue?

 

Appreciate any thoughts,

Thanks

Cameron

1 answer

6 votes
Rudy Holtkamp
Community Champion
September 10, 2020

@Cameron Falconer ,

Use  {{issue.issueType.name}} and you are fine.

 

Rudy

Anda Apine
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!
February 17, 2021

Thank you @Rudy Holtkamp this worked for me!

Like Rudy Holtkamp likes this

Suggest an answer

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

Atlassian Community Events