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}}
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.
I am trying to get this working on a custom insight field but not having any luck.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
For more details about Smart values, you can check the documentation below:
Let us know if this information clarifies your questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome @[deleted]
Have a nice weekend. :)
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.
I believe {{issue.Organizations.first.name}} only works in Automations for Jira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
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?
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?
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.