Forums

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

How would I copy values between custom field contexts automatically?

Scott Harman
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.
December 13, 2011

I'm trying to work out how I'd keep products (in a custom field called product) synchronised between various projects?

We've got a project called 'Incidents' for basic incident handling, and I'd like to automatically populate it's context for products with the combined set from other projects

I don't know if this is the best way to capture the information, but we want customers to log their product from a particular set, and using component won't really work (as we use component to log the software module)

i.e. in our Seat Products, we have Edit, Cut, View ... (30 something items), in Server products we have about another 5, in Client products, we have about 15

We want to have that whole list made available to customers in the incident project without having to double enter the data

Anyone got any thoughts on how we can achieve this (without trusting people with free-text entry ;))

2 answers

1 accepted

0 votes
Answer accepted
Renjith Pillai
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.
December 28, 2011

May be the best way to get this done is to load the values for all the custom fields externally and load them back to the field associated with Incidents product. I guess SOAP does not support this.

What I have done in a similar case was to load the HTML of create issue page for each of the Jira projects, do a regexp for the components, fetch all the components and create the custom field options again using direct HTTP get (you can easily figure out the parameters needed for adding a new option for a custom field by trying out one creation from the browser) (ofcourse u need to pass an administrator username and password in the HTTP requests using os_username and os_password)

Scott Harman
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.
January 3, 2012

Yeah - it's pretty much what I thought. I'll look at some of the other options, but I might look and see if it's possible to do with a Jelly script

Scott Harman
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.
July 8, 2012

Ended up doing basically that - using Ruby, native SQL and CURL to fetch what I needed and parsed them as a long list of URLs and worked quite nicely thanks

1 vote
MinC
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.
December 28, 2011

You can check on the functionality - Copy Value From Other Field Post-Function provided by the JIRA Suite Utilities whether this plugin fulfills your requirements.

Scott Harman
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.
January 3, 2012

Hi there - won't really work - Renjith seems to have hit the nail on the head, I guess it requires more local management of options

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events