Forums

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

How do I created a slack message integration which provides the organization name from JSM

albert_pinto
Contributor
April 4, 2022

I want to. create a slack message as below but the {{issue.organization}} does not work.  Any thoughts on how to fix this ?

 

Dear Support Team,

 

This issue:{{issue.key}} was from {{issue.reporter}}  from  {{issue.organization}}   was created.

Here is the summary:
{{issue.summary}}

Here are the details:
{{issue.description}}

Best,
JSM Admin

 

 

1 answer

1 accepted

0 votes
Answer accepted
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2022

Hi @albert_pinto ,

The Organization field can contain multiple values, so you'll need to give the Smart Value a pointer on which one to fetch. If there's only one set, you can simply use

{{issue.Organizations.first.name}}

to do it. That fetches the first value in the list, and references the name value for the object.

If you need to return multiple ones however, this previous post on Community has some additional help for using the asJsonObject function to get all the values from the field.

Cheers,
Daniel

albert_pinto
Contributor
April 4, 2022

Dear Daniel,

This seems to work !

Thank you!

-Albert

Like Daniel Eads likes this

Suggest an answer

Log in or Sign up to answer