Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic Issue Assign between roles

Mauricio Gonzalez February 2, 2018

Hi, I have two roles: 

PrimaryRole and SecondaryRole.

When an issue enters a certain status, the assignee (Primary Role) can use the "Reassign" transition and a post function will assign it to the SecondaryRole. The "Reassign" transitions to itself. 

My problem is when the SecondaryRole tries to Reassign it back to the Primary Role. The condition to assign it back is met but the assignee stays the same. I'm not sure why.

 

Any ideas? Should I be clearer? Thanks!

1 answer

0 votes
Gaston Valente
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 3, 2018

Mauricio,

Can you post the post function code that makes the assignment and the list of post functions that gets executed in that workflow transition?

Mauricio Gonzalez February 5, 2018

Sure:

1. Issue will be assigned to random user among those in project role PrimaryRole, except if current assignee is already in the project role
Post-function will only be executed if the following boolean expression is satisfied: isInRole(%{Assignee}, "SecondaryRole")
This feature will be run as user in field Current user

2. Issue will be assigned to random user among those in project role SecondaryRole, except if current assignee is already in the project role
Post-function will only be executed if the following boolean expression is satisfied: isInRole(%{Assignee}, "PrimaryRole")
This feature will be run as user in field Current user.

 

The rest are default post functions. 2 works fine. 1, even though is met (i had it update the description if the condition was true) is not making the assignment back to PrimaryRole. Thanks!

Suggest an answer

Log in or Sign up to answer