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...
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
Is the field type a user picker or a single/multi-line text field?
And is the project Next-Gen or Classic?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the type of this custom field? Can you try using {{issue.Employee Name}} ?
Hope this helps,
- Manon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Manon,
Type is text.
I tried this convention as well and it didn't work.
Thanks,
Nofar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does the Answer above not assist in terms of smart values?
If not:
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjay,
Did you find a resolution for this? If not, can you give an example of the text in Invoice Number?
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ade Adegoke
Check out this help page, specifically the section entitled {{[date].[dateformat]}}
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ste Wright Please could you advise me for the same - for custom field type: Drop down. is below correct to display the 'Reported by' value in Slack channel using automation :
{{issue.[Custom Field].displayName}}
My customer field is 'Reported by' so I used {{issue.Reported by.displayName}} but Slack is not showing the value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jamshid V.
displayName is only needed when it's a user picker, to show the name of the user rather than the account ID.
You should be able to just use {{issue.Reported by}} for a dropdown field.
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.