Forums

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

Assessing a field using smart value

John To
March 30, 2022

Hi Atlassian Community,

I am trying to extract the "Name" field (as illustrated in the picture below) to smart value so that I can use in Automation Rule. To be more specific, I'm trying to send email to a team leader informing him/her that the person in the "Name" field is requesting to access a system.

template.png

But I can't seem to find it after reading through the guides. My assumptions are:

1. This is a custom field and only administrator can call it.

2. I might need to dig deeper.

Either way, please enlighten me on the solution and be in touch.

Thank you,

John

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Champion
March 30, 2022

hi @John To , welcome to the community.

You should be able to reference via the custom field ID as in below

{{issue.customfield_xxxxx}}

You can find a custom field ID by going to administration section under issues then custom fields. find your custom field and click on the… on the right and select edit. At the very end of the URL for that field you will see the custom field ID. Replace the xxxxx above with that ID.

John To
March 30, 2022

Thank you Jack,

I totally comprehend your explanation. However, let me elaborate more on this matter:Screenshot 2022-03-31 135253.png

As you can see in this picture, the email value can be extracted using {{issue.description.substringBetween("mailto:","]")}}

The reason I know this is because the value was passed on to me at work but I don't know how did this arrive as a solution.

What I need at the moment is to do the same with the "Name" field.

John To
March 30, 2022

oh I figured it out by the way

{{issue.description.substringBetween("*Reporter*:","\n")}}

Suggest an answer

Log in or Sign up to answer