Forums

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

What am I doing wrong? My validator rule does not work as I thought?

Janine Daniels September 20, 2018

I have a step in my workflow where PM gives approval. The property of the status limits the ability to move to the next step to my PM team. In the transition to the next step, I created a validator rule: Field Assignee should be modified during the transition.

 

I think perhaps I am doing this wrong - the idea is that the user cannot forward the issue to the next step until a change has been made and the issue is assigned to another team member. But right now, even after changing the assignee and attempting to move to the next step, I am continuously prompted with an error message that I have not fulfilled this requirement.

 

Any idea where im going wrong? Cheers!

 

EDIT: this is also the same with my Comment validator - I would like for assignees to be forced to leave a comment before they can move the issue to the next status.

1 answer

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2018

Hi Janine,

I've added the validators for assignee and comment on my test instance and the result was:

Screenshot 2018-09-21_15-43-29.png

When I clicked to "In progress", I tried to change the status and the message to change the assignee appeared, so I changed the assignee and tried to confirm again. Then the message to add a comment appeared, so I added a comment and when I attempted to change the status again, it asked to change the assignee again and I saw that somehow it showed the previous assignee, so the field value was reset. But after I changed the assignee for the second time it worked and the status was changed.

It happened only at the first time, so if the ticket went back to another status and I tried to put "In progress" again, I added the assignee and the comment and then the status was changed normally.

Can you please let us know if it happened on your instance too?
Can you test again and check if the assignee field keeps the assignee you add or if it reverts to the previous assignee?

Regards,
Angélica

Janine Daniels September 24, 2018

Thanks for your reply, Angélica.

 

I will walk you through one instance. The management team receive bugs at status "pending approval", and can move it onto the next status "assigned". They must change the assignee to another team member  to work on (only management roles have the ability to do this at this step.) In the transition between pending and assigned, I have the step: "Field Assignee should be modified during the transition". From the issue, when I select "approved" to move on the status, the reassign error message appears, even when I have already assigned it to someone else.

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2018

Hi Janine,

Is the field Assignee on the screen when you change the status?
When it's necessary to modify a field during a transition, this field must be on the screen, so the transition between Pending Approval and Assigned must have a screen with the field Assignee, because if you change directly on the ticket before change the status, it will not work correctly.

Can you please go to the workflow and check if the field is on the screen? If not, can you please add and test?

Regards,
Angélica

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events