How to migrate custom field values with groovy or not?

 Hi!

Today I would like to share a possible way to migrate or merge a custom field during a periodical cleanup. 

Possible ways are built-in functionality of Scriptrunner or myGroovy, own code and own yet another alternative way for the complicated situation.

Also,you can follow with next typical steps of cleanup process:

  1. Detect the fields
  2. Create a ticket about merge plan 
  3. Detect the JQL, agile boards queries via database queries in tables searchrequest, add info into ticket
  4. Prepare the optimized the context in the comment of ticket
  5. Notify project stakeholders in the Jira ticket
  6. Get approvals 
  7. Inform via slack (email) the next merge the end users affected  for  that changes
  8. Execute the action.

This is my typical process for the cleanup activity.

As an example, let’s do the next real case with screenshots.

 

Goal:

Migrate from the Production environment field to Products field. Both fields are pickers. 

image.png

Where some of options are the same, if you see the small differences, you can change if both need to be merged.

image.png

Then under super user which has access to all related projects, create filters with related tickets.

image.png

Then I saved the filter with name test_ . 

After visiting the Scriptrunner built-in scripts to copy custom fields values.

image.png

After verify via preview and run.

image.png

Hooray we merged. 

After using the new feature (https://jira.atlassian.com/browse/JRASERVER-41269) from 8.11.0, we can adjust the private filters via gui, if it’s needed. And public stuff as well via gui.


Comments

  1. Slots Empire Casino - Dr. Martin's Digital
    slots empire casino slot casino games to 인천광역 출장마사지 play for real money casino and enjoy 남양주 출장마사지 for free and real 대구광역 출장마사지 money! The site's 파주 출장마사지 easy to navigate interface is designed 경상남도 출장안마 to

    ReplyDelete
  2. In addition, not all on-line casino games will contribute equally to the wagering requirements, and circumstance that} roulette has a small home edge, the game will rarely depend absolutely. Have a take a look at|have a glance at} the desk above to see 먹튀 검증 사이트 particulars of the best on-line roulette UK bonuses on the market at the moment. These games have helped create model new} buzz across the sport and can be very enjoyable to play.

    ReplyDelete

Post a Comment

Popular posts from this blog

Let's check installed apps dependency to be compliant for OWASP Dependency-Check

Jira: Housekeeping or continuous cleanup of the Agile activity artifacts

Atlassian Community, let's collaborate and provide stats to vendors about our SQL index usage