Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Dropdown options smart value

Hi,

I am trying to setup an automation work flow based on a Jira Service Desk issue created. One of the issue fields is a dropdown selection which allows the issue creator to determine which environment this request is applicable for. At this stage there are only two possible choices, but I plan to increase this in the future.


There are a lot of other fields which I can easily extract and have setup an automation workflow to email to me. However for some reason I cannot get it to work with providing me what was chosen by the creator in this drop down box.

 

For the sake of this example the dropdown box is labelled Environment and has a display name of Environment

 

For example, the drop down box has the following 2 choices.

 

Environment A

Environment B

 

When the email is sent off I am trying to get it to input that the chosen option into this line of text.

 


This request is for {{issue.fields.Environment}} environment.

 

A successful end result would be seeing something like this.

 

This request is for Environment A environment.

 


I have tried a few different smart value variables but maybe I am missing the magic one that makes it work.

 

Appreciate any and all help in advance!

2 answers

0 votes

Hello @Daniel Bostock

Welcome to the Atlassian Community.

Per your description, I understand that you created an automation rule to send a notification containing the option selected for a drop-down list called "Environment", however, you are not being able to reference the field value selected using Smart values. Is that correct?

By default, Jira already has a system field called "Environment", so I believe the smart value you created {{issue.fields.Environment}} might be wrong and referencing that field instead of the custom field you created.

In order to reference the correct smart value for custom fields, we recommend you to use the custom field ID instead of the name. These would be the steps to do it:

  1. Click in the cog icon of your Jira application at the top right corner > Issues
  2. In the left menu, select Custom fields and search for "Environment" in the search bar
  3. Then, click in the three dots menu > Contexts and Default value:
    Screen Shot 2020-07-17 at 17.25.55.png
  4. Copy the Custom field ID at the end of the URL of the new page displayed:
    Screen Shot 2020-07-17 at 17.26.55.png
  5. Navigate to your automation rule and add the smart value with the following structure, where "XXXXX" is the custom field Id you just collected:
    {{issue.customfield_XXXXX}}

For more details about the steps provided, please check the documentation below:

How to use Smart Values in Automation for Jira 

Let us know if those steps worked for you.

0 votes

Hi Atlassian Team,

Is there any possibility to capture custom value from a drop down field without Id.

 

Thanks,

Chiranjib

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

319 views 9 7
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