Hi,
as the title says we don't want our users to change the assignee to 'Unassigned'. We currently have five status defined and in only one of these status the assignee can be 'Unassigned'. In all the other status the assignee has to be set.
In the transitions we already made sure that the assignee is always set, but that's only one part of the problem. After the transition the user can change the assignee back to 'Unassigned' at any time, which we don't want. Is there a possibility to recognize changes made in fields to check whether they're 'valid'? We then could check if assignee is 'Unassigned' and revert the change depending on the status.
Many thanks in advance.
Hi Lucas,
there is actually a couple of different ways to achieve this in jira, depending on your actual needs I recommend you check this thread and question: https://community.atlassian.com/t5/Jira-Core-questions/Can-you-stop-a-user-from-clearing-assignee-while-a-ticket-is/qaq-p/317586
Depending how well you know jira, adding a validator in the workflow step that checks for this field as required could be the fastes way of doing it, however if you never want assignee to be empty this could be a bit tedious, as you'd have to add this validator to every step. (https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html)
You can configure jira to unallow this alltogether: https://confluence.atlassian.com/adminjiraserver073/configuring-jira-application-options-861253962.html however this means you have to set default assignees for each project which in turn can lead to one user getting swamped with everyone's unassigned tickets, as I said, depending on your needs there is different ideal solutions.
Hope this helps in figuring out what you need, best
Merle
Hi Merle,
the workflow works actually fine, one can only change the status, if field assignee is unequal 'Unassigned'. After a transition the users can then change the assignee to 'Unassigned', which we don't want. It's more a problem of the issue view/edit, users can set the assignee at any time to 'Unassigned', which is generally okay. But for most status, we don't want our users to be able to change the assignee to 'Unassigned'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Lucas,
I figured as much, when I read your response to Elifcan, and yes, Event Listeners are the way you want to go in that case ;)
you could find this useful: https://developer.atlassian.com/server/jira/platform/writing-jira-event-listeners-with-the-atlassian-event-library/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I can think of three different solutions.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Elifcan,
I guess these workflow properties only affect the transitions? The transitions are working fine, we prevent the users from changing the status, when the assignee ist 'Unassigned'. But after they've changed the assignee to change the status, they unfortunately choose 'Unassigned' as assignee.
The listener solution sounds perfect to me. Are these listeners recognize changes made in fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Actually properties can be added to statuses also. I don't know exact property keys but you can try it out according to the link I shared.
Yes, listeners listen for events, for example, in this situation it will look for issue updated event and your script will check if the assignee is changed to unassigned and change it back to the previous assignee. You may use script runner plugin for this or you can write your own listener plugin.
Regards .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
Here is a link about how you can use properties on statuses:
https://www.j-tricks.com/tutorials/permissions-based-on-workflow-status
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Elifcan,
thank you for your link, that really helped! We've restricted the assignee to a group, but the assignee 'Unassigned' is still in the list of recommended assignees. I guess that is some kind of standard.
I think a listener is the only way to solve this elegantly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, happy to help :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey all 👋 @Lucas Kröske @Elifcan Cakmak @Joe Pitt @Merle Fischer
I'd like to pick up this topic again. For us it does not work, to add a validator step to each transition, as it would be way too much to do.
Has anyone found a way to use Adaptavists Scriptrunner for Cloud to solve this? We have this add-on in place, but yet wo do not have knowledge in creating scripts.
Our use case is the same as @Lucas Kröskein each status except "New" there must be an assignee set, issues w/o assignee are not allowed.
How can that be achieved?
Thanks, Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From personal experience with many tools, issues that aren't assigned to a person aren't worked. Allowing unassigned issues at all opens you up to no one being responsible for them. they don't appear in anyone's 'assigned to me' list.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Joe,
that's absolutely okay, since we have a filter for all unassigned issues. There is a person, who will evaluate and then assign them to someone.
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.