Forums

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

separating out a custom field context

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2012

Morning...

Question that has been rattling around Atlassian support for a while and not getting any traction.

We have a select list custom field associated with two projects, through one conext. That is, the options for the select are the same for both projects.

This was a mistake, it should have been two different contexts. Is there a way I can separate them out now? Apparently if a new context is created and associated, existing values on issues are lost. (I haven't tested this, asking on behalf of someone else, but seems quite plausible).

3 answers

1 vote
Mizan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2012

Hi Jamie ,

I have not tried this but i guess this can be done using JPSSF plugin . If the number of values in your select list is less you can add exactly similar values in project specific customfiled and copy the values from the select list to the new customfield provided by JPSSF ( using script runner plugin's inbuilt script to copy customfield values ;-) ). This most probably will let the existing data in the issues.

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2012

Hi Mizan,

It's difficult to understand what that JPSSF plugin is for, as you can already have different contexts and so different values for a select custom field in different projects.

Also I'm not sure how I can separate out what I already have, given there are a lot of issues with data in already.

But thanks for the pointer to the excellent "script runner" plugin ;-) - I think I will modify the "copy custom field values" script to copy values from one context to another.

Holger Schimanski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2014

New URL of Project Specific Select Field resp. JPSSF is https://marketplace.atlassian.com/plugins/jira.plugin.projectspecificselectfield.jpssf.

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2014

At some point since writing this question, almost three years ago, I wrote something to separate out the contexts: https://jamieechlin.atlassian.net/wiki/display/GRV/Built-In+Scripts#Built-InScripts-SplitCustomFieldContext

 

0 votes
Holger Schimanski
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 8, 2014

Unless you removed them from your first context, they are not available to be added to a new context.

Simply deselect the projects in your first context so that they are no longer part of that context. Then create a new context and add these projects to the new context.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events