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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,560,643
Community Members
 
Community Events
185
Community Groups

Smart value for Organization.

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

2 votes
Answer accepted
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 03, 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 Oct 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.
Oct 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 Oct 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.
Oct 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 Oct 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.
Oct 30, 2020

You are welcome @[deleted]

Have a nice weekend. :)

0 votes
Deleted user Oct 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}} 

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

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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events