JIRA Set custom field value to Assignee field

Hi All,

I have an requirement where, I would like to copy a field (basically i have User Picker Custom field) upon transition say from STATUS A to B, Custom field value i.e user name should be assigned as Assignee.

 

Please help me on this. I would like to achieve this using Post function without any New add on installed.

Is it possible to go with this approach.

 

Many Thanks,
Akash 

2 answers

2 votes

Hi, Akash.

You can add a post-function to this transition and use the Copy value from other field post-function from the JIRA Suite Utilities plugin to copy this. smile

Cheers,
Matheus 

@Matheus Fernandes : I tried using Copy Value from other field but upon transition Assignee is not getting updated. Anything that i am missing. Thanks, Akash

This should work. Where did you put the post-function script? Check the order of the post-functions. Also, try checking the logs for any hints about the issue. Enable JIRA Debug logging if possible.

To complement what Gabrielle said, although silly: make sure the workflow draft was published. :)

@Gabrielle Bautista [ACP-JA] & @Matheus Fernandes Hi All, It worked. THanks a Lot everyone for getting this thing done. Much Appreciated. Many Thanks, Akash

👍

Hi all, will this post function work to copy value from one field to another within same screen? not from one transition to another or one status to another status. trying to copy value using javascript but not working.

Thanks in advance.

The custom field with values will always be present in an "Issue" and if they are present in the "View Screen". There are "Transition Screens" too and don't mix em up smile

Hi Akash,

              How u set customfield value to assignee field. we have same issue.

hi,

this solution works on transition which means it goes from state A to B. how can i get assignee when no state changes. in other words, how can i set custom field when user change assignee without changing state in workflow(so no transition fires)?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

153 views 0 6
Read article

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