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.
Is this Valid?
Has anyone had it working?
I am trying to use this to filter an insight field list using IQL:
"Organization" = ${{issue.Organizations.first.name}}
@Petter Gonçalves
I am trying to get this working on a custom insight field but not having any luck.
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.
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.
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)
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?
Same here, I added a simple Log Action so I can easily see what the outcome is.So far, it is always empty.Anyone with luck on getting the Organization as a string?
It looks like you're new here. Sign in or register to get started.