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

0 votes
Accepted answer

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.
0 votes

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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,199 views 17 10
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