Hey,
I'm trying to create a rule that assigns issue to it's component lead ONLY if it's unassigned. I know I can auto-assign to component lead from the projects settings. But I want to do so only if the issue is currently unassigned. Tried to find a smart value but no success there.
Thanks
Nofar
During creation, this is how the component lead works - it defaults to the component lead unless a specific user is selected.
I think I've worked out a way during edits - it does require a little setup:
^ Once done, create an automation rule and then:
This should default unassigned issues to the Automatic assignee - in this case, the Component Lead.
You can use another Trigger if you prefer, such as any time the issue is edited or transitioned. This was just the one I used for this test.
Ste
first, you should check if the field "assignee" is empty with a condition component.
Getting component leads is a bit more difficult. You can call the Jira API to get the component lead (documentation). I found this tutorial quite helpful to follow for basic setup, which makes it quite easy.
I think you should get the component lead accountId then via the webhook response like this:
{{webhookResponse.body.lead.accountId}}
Which you can use in the automation component "assign issue" in which you select "smart value" any copy paste the above smart value in.
And you can upvote the feature request in the meanwhile: https://jira.atlassian.com/browse/JRACLOUD-76851
Yours
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For people from future.
{{webhookResponse.body.lead.accountId}}
eventually became
{{webResponse.body.lead.accountId}}
Also, in my particular case the flow looked like this:
1. If field changes on some condition.
2. Set Component = X
3. Send API request to get the lead of Component = X
4. Assign the issue to the lead of Component = X
All my issues remained unassigned. This checkbox in the point 3 solved it:
Delay execution of subsequent rule actions until we've received a response for this web request
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
A little workaround to be done to avoid any trigger.
First, the whole system to be disabled to unassigned issues.
System --> General Configuration --> Allow unassigned issues --> OFF
To enable this in System, you need to make sure no unassigned issues.
At project level, you are anyhow setting default Assignee as Project Lead. If component is selected, then Component Lead.
For any of the issue created, it will be assigned to ASSIGNEE or Component Lead or Project lead.
Hope this works without adding any triggers.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.