I can add entity properties to Service Desk Organizations using the API. How do I then access those properties using smart values?
I can access the Organization name like this: {{issue.Organization.first.name}}
But the following give me no output despite properties existing for the org and accessible via the API:
This works fine for Users/Customers: {{reporter.properties}}
Hello @Brad
Welcome to the Atlassian Community!
Unfortunately, Jira Automation does not support a smart value to display the entity properties of Jira Service Desk organizations.
We understand how this smart value would be useful to achieve some needs, so we created the following feature request to implement it:
Access and set organization entity properties
For now, we can only ask you to keep an eye open in that feature request to know when that feature is implemented.
Additionally, could you please provide us with more details about what you're trying to achieve? Maybe we can suggest some other smart values/ways that might help.
Let us know if you have any questions.
Thanks for the response, @Petter Gonçalves
I'm glad to hear that there is a feature request for this, but it's discouraging to see that it was created over 3 years ago and has had no real activity since. Is there some way I can vote for the request or add a comment so that the project manager knows there is interest in this?
I am using automation to generate and send a custom email to a subset of an organization's customers (the main PoCs) based on the organization selected in the Issue. I am using the entity properties of the organization to store both the names of those customers (to be used in the email body), and the email addresses to which to send the email. I do have some other ideas of how to achieve this, but using Organization entity properties seemed most clean to me. I'm open to ideas!
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.
Hello @Brad
Sorry for my late reply. I was looking for some possible options to achieve your need with Jira automation.
After some time digging and asking other colleagues, the best way to send custom emails that I was able to find would be by using a user picker custom field to automatically get the PoCs based on the organization selected, using a separate automation rule with one condition for each organization. Then, create another rule using the smart values to select the custom field display name and email address, as in the example below:
We understand that this is not an optimal solution, as you'll need to update the rule that fills the custom field if the organization's PoC changes.
As we are still migrating the Codebarrel portal to Jira (JAC), we don't have the functionality to allow users to comment or vote in the suggestions, however, I have properly added this question as an internal comment so our PMs from Jira Automation can check your feedback.
Let us know if you have any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for taking the time to research and respond. I think I can make your solution work. The only issue is that we have many organizations and so I will need to add a lot of else-ifs to the if/else block. Is there any limit to the number of else-ifs an if/else block can contain?
I see that I can export rules, modify the JSON programmatically, and then import the modified rule. Would this be the best way to quickly add a large number of else-ifs to a rule? Adding all the organizations and associated PoCs via the web GUI would take a very long time.
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.