Hi @Saira ,
a workflow validator can help you on that during transition opertion. Btw, a ticket could be reassigned through an assign operation that doesn't involve a validator.
Hi @Saira ,
You can select an issue > click Test > click View result for more script validator log.
Your script currently wrong syntax, it should be issue.parent.assignee.accountId != issue.assignee.accountId
If your issue-parent is issue - sub-task.
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But now I want to implement similar test for reporter
so I used
issue.parent.reporter.accountId != issue.assignee.accountId
but it does not prevent transition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more question - now that you helped answer my first one :D
I have a parent issue that has two subtasks - suppose task A and task B
I want task B's assignee to not be the same as task A's. Task A has a label, let's call that X.
How do I write a scriptrunner script to restrict transition of task B if task A and B have the same assignee ?
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.