How can i move one custom field data to another custom field by using Scripting?


I am using JIRA 7.3.0 server. Two custom field 'Tester' is there in my JIRA and i want to move and make it only one custom field 'Tester'. How can i do by using script runnner?



2 answers

0 vote
Vasiliy Zverev Community Champion Mar 15, 2017
  1. Find all issues with not empty field
  2. Export it to Excel 
  3. Inset all issue keys to script

    import com.atlassian.jira.component.ComponentAccessor
    import com.atlassian.jira.event.type.EventDispatchOption
    import com.atlassian.jira.issue.IssueManager
    import com.atlassian.jira.issue.MutableIssue
    import com.atlassian.jira.issue.UpdateIssueRequest
    import com.atlassian.jira.issue.fields.CustomField
    import com.atlassian.jira.user.ApplicationUser
    IssueManager issueManager = ComponentAccessor.getIssueManager();
    UpdateIssueRequest updateIssueRequest = UpdateIssueRequest.builder().eventDispatchOption(EventDispatchOption.ISSUE_UPDATED).sendMail(false).build();
    ApplicationUser curUser = ComponentAccessor.getJiraAuthenticationContext().getUser()
    CustomField copyFrom = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("copyFromName")
    CustomField copyTo = ComponentAccessor.getCustomFieldManager().getCustomFieldObjectByName("copyToName")
    MutableIssue issue;
    for(String key: getIssuesKeysForUpdate()) {
        issue = issueManager.getIssueObject(key)
    public List<String> getIssuesKeysForUpdate(){
        return Arrays.asList(


How can I copy the value of Release Version (Custom Field) to Fix Version/s (System Field) in create screen?

Could you please help me?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

895 views 3 12
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