Assignee was override by post function of workflow even if I set specified user in transfer screen

Hi All,

 

I created a workflow for bug, one transition is from "In Progress" to "Verification", I added a post function of "Assign to Report" and added "Assignee" field in transition screen for this transition.

For example: 

this bug reporter is "A".

1. I transferred this bug from "In Progress" to "Verification". 

-- Automatically assigned to "A", this is right.

2. I assigned the bug to "User1" when transferring the status from "In Progress" to "Verification" in Transition screen.

--Automatically assigned to "A" not "User1", it's wrong. In history, it showed the assigned change from "User1" to "A".

 

For 2, how to make it work?

 

Thanks in advance!

1 answer

1 accepted

1 vote
Tarun Sapra Community Champion Aug 14, 2017

Hello Maggie,

 

Post-functions are always executed  at the end of the transition phase, thus even if you assign the issue to "User1", still it will be always assigned to "A" becuase in your post-function you have configured it that way. Because the post-function is excuted after transition screen thus "A" overrides values of "User1" as assignee. 

You need a more clever post-function - some code to  pick up when you want to run it and when not, and wrap that logic around the "assign" statement in it.

I have a "Jira workflow toolbox " add-ons, and not find the post-function you said.

It doesn't have one.  You'll need to find or write one to do it, or use one of the scripting add-ons to write code to do it in-line

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Posted 13 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

36 views 0 5
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you