I find myself in this scenario:
I need to check whether current assignee = component lead during a specific transition.
If my current assignee = component lead, then take some actions (add a comment, select a new assignee, or some such).
Does anyone know if this comparison is possible?
The only posts I've found are from before Atlassian took over Automation for JIRA. Codebarrel had it on a backlog.
Hi @Rosa M Fossi ,
I don't think this is possible using Automation for Jira. I didn't find any way to obtain the lead from the issue's component (just the component's name). According to the other posts it is not implemented yet.
There could me more components and it is also possible some components don't have any lead, so your scenario is not easy to handle.
Are there any other applications you could use?
Thanks for your response Hana. I'm not sure there's another app I could use. The key here is the association between a component and an agent (the "no component lead" scenario shouldn't matter... the comparison would still pass/fail. null != <useraccount>)
I've been thinking about this, and perhaps a workaround is to create my own hidden field called "component owner". Then create an automation that populates the field with my desired agent based on the component selected. Then maybe I can use that field for the comparison if component owner = current assignee then...
I've also thought that maybe I can leverage user properties; however, I'm not certain if that's safe for long term (something tickles my memory about properties. Maybe they are being deprecated in the long run?). Also, that might not be as easy to maintain / implement in an automation as a custom field.
Yes, this should be possible.
1) Create custom field with type User Picker (single user), let's name it CO
2) Create first automation rule, which sets the value of CO based on the selected Components (probably using several "if/else" and "then" blocks
3) Create the second automation rule with if condition, which compares value of the Assignee field and CO
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events