Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Smart value for Organization.

Jacob Lusco
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 2, 2020

I am trying to build an automation that needs to use the Organization field. I cannot find what the smart value would be for that field can anyone assist?

 

Something along {{issue.Organization.text}}

2 answers

1 accepted

4 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 3, 2020

Hello @Jacob Lusco

Thank you for reaching out.

Per your description, I understand you would like to reference the organization field with a smart value in an Automation rule. Is that correct?

Can you please provide us a screenshot of your automation rule (Hiding any sensitive data) so we can have more context on how you are trying to use it exactly?

The organization field is a multi-value field, so you can use the following smart value to get the first organization of the field:

{{issue.Organizations.first.name}}

Now, if you want to get the whole list of organizations, you can use the JSON syntax as explained in this thread:

{ "fields": { "Kunde/n": {{issue.Organizations.name.asJsonObject("value").asJsonArray}} } }

More about our JSON functions here:
https://docs.automationforjira.com/reference/json.html#asjsonobjectarray-keyname

Let us know if you have any questions.

Deleted user October 28, 2020

@Petter Gonçalves 

I am trying to get this working on a custom insight field but not having any luck.

Annotation 2020-10-28 215650.png

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2020 edited

Hello @[deleted]

The smart value {{issue.Organizations.first.name}} works just fine, however, please note that this smart value is related to Jira automation available on the Cloud version of Jira, as it's tagged in this question.

I'm not sure if I completely understood what you are trying to achieve, but this smart value can only be used with the mentioned automation functionality, which is available as an app for Jira Server:

Automation for Jira - Server 

For more details about Smart values, you can check the documentation below:

What are smart values? 

Let us know if this information clarifies your questions.

Like • Deleted user likes this
Deleted user October 29, 2020

Hello @Petter Gonçalves 

Thanks for the response.

I was picking up someone else's work to make some improvements. :-( 

Maybe a new thread is needed, but what I am trying to do here is filter / prepopulate a custom insight field based on the Organization value.

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2020

Hey @[deleted]

Thank you for the details.

Unfortunately, this is not possible to do without using any apps.

I believe your goal can be achieved with the smart value mentioned, however, you'll need the Automation app. There is a free version that might work for you:

Automation for Jira - Server Lite 

Additionally, you can look for other automation apps at the Atlassian marketplace.

Like • Deleted user likes this
Deleted user October 29, 2020

Thank you so much @Petter Gonçalves 

That just linked the dots up for me. Not amazingly pretty but works like a treat.

The automation for jira is used to populate a secondary field, with the name of the first Organization.  I can then use the second field name as the lookup in the custom insight field.

Can't Thank you enough. 

Has taken a few weeks, just need a point in the right direction.

Like • Petter Gonçalves likes this
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2020

You are welcome @[deleted]

Have a nice weekend. :)

0 votes
Deleted user October 21, 2020

Is this Valid?

{{issue.Organizations.first.name}}

Has anyone had it working?

I am trying to use this to filter an insight field list using IQL:

"Organization" = ${{issue.Organizations.first.name}} 

Dan W
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 10, 2023

I believe  {{issue.Organizations.first.name}} only works in Automations for Jira

Shaun Sexton May 24, 2023

I haven't been able to get it working in automations either - what I am trying to accomplish is having a custom field (created as single select)

Capture.JPG

then in the automation rule in the project - for each new ticket - I want to be able to utilize this field to essentially select a value off what is in the list of organizations.  I've been trying many iterations of the select value - but nothing yields any value options - any suggestions or see what I am missing?

 

I have the rule set to - when issue created -> edit field -> then I've hit a roadblock determining what value to include for organizations - documentation seems very limited on this, at least what I have been able to find?

Capture.JPG

i've played with:

{{Organizations.name}}
{{Organizations.first.name}}
{{Organizations.cascade list.value}}

{{issue.Organizations.name}}

 

nothing appears to work - when I create a ticket - it passes the verification in the audit log, but when I go in the ticket and select the custom_field - there are no organization entries (or any entries) available to select from?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Upcoming Jira Service Management Events