Hello!
I am attempting to automate filling the Organisations-field in Jira Cloud SM. It's not going very swimmingly, unfortunately. If anyone has suggestions, I'm open to anything.
As it stands, we have to manually fill the organisations field every time a new issue is created, all methods. Since our setup relies on the organisations field for SLA's due to differing contracts, it's important to get the right organisation into this field.
Thus far I've tried creating a multi-branch automation rule.
This unfortunately does not seem to work. No errors in the audit log, but the basic "No actions were performed."
Another thing I tried was relying on the automation action "Edit issue fields" that targets the Organisations-field with "Use reporter's email domain" with "Create organisation if it doesn't exist" toggled off. We want the Organisations-field to be populated by pre-exising organisations, not ones like bebop.com.
Unfortunately, this also doesnt work. No errors, but says "Success" while nothing happens.
Every one of our organisations has an email domain attached to it (the fairly new feature of Jira Organisations tab), but that doesnt seem to be a field we can refer to for automation or JQL.
Hi @Juuso Ikonen welcome to the Community! I had the same issue where I wanted the Organization to fill in automatically. I
I haven't tried using the email domain, but I did accomplish defaulting in the Organization based on the user's Organization they are assigned to in JSM. It uses some API calls to get the User's Organization and then default it into the ticket's Organization.
I needed a bunch of help from Atlassian Support to make this happen for my system. I have an Automation that when the issue is created is grabs the Organization of the Reporter, and then updates the Organization of the issue. Here's the rough layout:
It updates the Organization of the issue with this code:
{
"update": {
"Organizations":
[
{{#webResponse.body.values}}
{"add": {{id}} }
{{^last}},{{/}}{{/}}
]
}
}
The API call is something like this:
but is pretty long and hard to paste screenshots of. I would contact Atlassian Support if you need more help with the API calls.
Also, I would suggest voting for and watching JSDCLOUD-15131 so this can be done by the system so that the user's Organization can automatically be added to the Issue when it's created without having to use the Automation.
Hope that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.