Forums

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

JIRA Set custom field value to Assignee field

AKASH BHARDWAJ
Contributor
August 25, 2015

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
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2015

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 

AKASH BHARDWAJ
Contributor
August 25, 2015

@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

Deleted user August 25, 2015

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.

Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2015

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

AKASH BHARDWAJ
Contributor
August 26, 2015

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

Deleted user August 26, 2015

Cheers :)

Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 26, 2015

👍

Indranil Mondal
Contributor
February 23, 2016

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.

Deleted user February 23, 2016

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

Nikhil Rote June 1, 2017

Hi Akash,

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

1 vote
Arvin Ketabat
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2018

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
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events