Forums

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

Post Function: Assign to last role member not functioning

Pranita Warik October 1, 2020

Use Case:

User creates an Issue. It is assigned to an Admin id. There are three Reviewers: A B C.

They assign the Issue to themselves using the "Assign to me". Now if they send back any Issue to the Initiator,  when the Initiator Resubmits the Issue, if should be assigned to the Reviewer who has send back.

eg. Initiator X creates issue --> assignee is Admin id

Reviewer A does Assign to Me  --> assignee is A

Reviewer A sends back to Initiator --> assignee is X

Initiator X resubmits ---> assignee should be A (but right now its assigned to X)

I have added the post function in the Resubmit Transition.

Kindly help out.

CaptureLastmember.JPG

2 answers

0 votes
David Fischer
Community Champion
October 1, 2020

I could suggest you try JMWE's Assign to Last Role Member post-function instead, but I'm not sure that's the problem.

Can you check that you see, on the issue's History tab, all the Assignee field changes corresponding to what you described above? Because this is what the post-function looks at.

Pranita Warik October 1, 2020

Hi @David Fischer 

The transition section only shows:

Reviewer A made a transition (Under Review --> Pending with Initiator)

Initiator X made a transition (Resubmit Request-->Under Review)

David Fischer
Community Champion
October 2, 2020

That means the way you are changing the Assignee during these transitions is incorrect. I assume you are using post-functions to automatically set the Assignee field during these transitions, right? Check the configuration (and position) of these post-functions. You can also try replacing them with a Set Field Value post-function from JMWE, which will write the Assignee field change to the History.

0 votes
Niranjan
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.
October 1, 2020

@Pranita Warik - Can you attach the screenshot of the postfunction of the "Resubmit" transition? Also ensure if the reporter has "assign issue" permissions.

Pranita Warik October 1, 2020

@Niranjan 

Added the post function.

Niranjan
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.
October 1, 2020

@Pranita Warik - Also check if the reporter/person who transitions resubmit has "assign issue" permissions.

Pranita Warik October 1, 2020

@Niranjan 

Right now, the Initiator is having the assign issue rights.

But when we roll it out, the Initiators won't have the Assign Issue permission. We cannot give this rights to users.

Niranjan
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.
October 1, 2020

That was a suspicion. If a user makes a transition, reassigning post-function would happen as that user who has made the transition and to allow that, the user would need assign issue permissions. BTW can you also attach the screenshot of that particular post-function configuration. (settings of that postfunction)

Pranita Warik October 1, 2020
Niranjan
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.
October 1, 2020

@Pranita Warik - post-function looks good to me. What condition do you have for the transition?

Pranita Warik October 1, 2020

@Niranjan 

Only the reporter of the issue can execute this transition.

Niranjan
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.
October 1, 2020

@Pranita Warik  Can you try to place the postfunction as the first postfunction? Just reorder the postfunction and put it on top? If that does not work, check the logs when the transition is made

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.5.1
TAGS
AUG Leaders

Atlassian Community Events