Execute the function before the transition

Hi all! 

Please help me with my case:

(comment: i have add-ons JSU)

I want to be able to change the assignee, but (!) if assignee has been changed - i need to get the value of the field of the current assignee. 

What i tried to do:

i create 2 transitions.

https://yadi.sk/i/MS2RiGcn3PNX7M

In first transition, i make a post-function that copies the value current assignee to custom field (his name: "First assignee" )

https://yadi.sk/i/kSJntfgA3PNXN8

In second transition i wanted to open screen ( https://yadi.sk/i/c_wffzl33PNY9a ), where have field Assignee (for change assignee), but screen not opened.

https://yadi.sk/i/Ou_7BfSr3PNXzk

How can i implement?

maybe create another ("new assignee") custom field? 

Steps: 

1. on screen in transition: custom field, for to word new assignee

post function:

2. copy current assignee to custom field "First assignee"

3. copy custom field "new assignee" - to current assignee

m?

Thanks for all = )

2 answers

1 accepted

This widget could not be displayed.

I could realize this function with help addon: 

Jira Misc Workflow Extensions

Postfunction name: 

Copy value from field to field (JMWE add-on)Copy the value(s) of one field to another field. Can copy the value of the field before it was changed on the transition's screen.
This widget could not be displayed.

Hello,

To be honest I do not quite understand what you want to accomplish.  What do you mean by current assignee? If assignee has been changed then the current assigne equals to assignee. Or you want to save somwhere previous assignee?

I want to be able to change assignee and after changing in the Custom field Primary assignee field the value of who was before the change appeared.
I apologize for the English. my assistant is Google translator :)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

216 views 3 0
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