Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,259
Community Members
 
Community Events
165
Community Groups

Custom Fields in Smart Values

Edited

Hey, 

 

I have a rule that triggered on a specific issuetype creation and then sends a Slack message to a channel. For some reason I cant get the value of the custom fields name I want to send. I tried to following conventions:

{{issue.Employee Name.name}}

{{issue."Employee Name".name}}

{{issue.[Employee Name].name}}

and some more... 

2 answers

1 accepted

0 votes
Answer accepted

Hi @Nofar Ben Kereth 

Are you trying to send the user's name to the channel?

If so, this should work:

{{issue.Employee Name.displayName}}

^ See this page for more information on using user smart values.

Ste

Hi @Nofar Ben Kereth 

Is the field type a user picker or a single/multi-line text field?

And is the project Next-Gen or Classic?

Ste

Single line text, classic project. 

Hi @Nofar Ben Kereth 

This should work:

{{issue.Employee Name}}

^ I know you mentioned this hasn't worked above. I tested this in our instance and it worked, using a Send Email action (as our Jira isn't linked to Slack - but it should work the same way).

I would check:

  • "Employee Name" should be the actual name of your field - is it?
  • Is the field populated at creation? I.E populated prior to the "Create" button being pressed? Not via an Automation Rule or Post Function?

If both are yes, what data is being received in Slack when you use the above smart value?

You could also provide the full rule as a screenshot so we can try to replicate the exact scenario :)

Ste

Hey,

 

It worked for the field value. 

 

Thanks

0 votes

Hi @Nofar Ben Kereth,

What is the type of this custom field? Can you try using {{issue.Employee Name}} ?

Hope this helps,

- Manon

Hey Manon,

 

Type is text. 

I tried this convention as well and it didn't work. 

 

Thanks,

Nofar

@Nofar Ben Kereth did you figure this out?  dealing with the same issue right now.   There is no value property and I've tried everything I can think of to display the value from this field. 

Hi @David Loszewski 

Does the Answer above not assist in terms of smart values?

If not:

  • What type of field is it?
  • What value are you trying to show?
  • Is it a Team-managed or Company-managed project?

Ste

Hi Stephen,

I am facing with similar issue. i am simply sending an email with Invoice Number(name of the custom field) in body.

{{issue.fields.customfield_10068}}

{{issue.fields.Invoice Number}}

{{issue.[Invoice Number].defaultValues}}

{{issue.[Invoice Number]}}

I have tried multiple syntaxes and it still comes out blank in the email.

The field is single line text and is being populated via a transition screen.

Sanjay.

Hi Sanjay,

Did you find a resolution for this? If not, can you give an example of the text in Invoice Number?

Ste

Hi Stephen, 

I am facing a challenge on how to display custom field that has date and time. When i use this {{issue.Planned End Time}} it returns this 2022-04-19T16:30:00.0+0000. Is there a way to make this more recognizable.

Thanks

Suggest an answer

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

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,092 views 34 44
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