Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

export the value of a label in xml export

peter vande weyer April 13, 2015

I do a search in JIRA and export it to xml

image2015-4-13 14:15:52.png

One of the fields that I want to export is a label

When I export this I get an integer value representing the internal JIRA value instead of the actual value.

 

example:

<customfield id="customfield_13792" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
<customfieldname>Base Fix Version</customfieldname>
<customfieldvalues>
<customfieldvalue>24120</customfieldvalue>
</customfieldvalues>
</customfield>

As you can see here: the value is 24120 but in JIRA this shows as 28Q1.000

image2015-4-13 14:21:14.png

I would like to use that value. 

 

Is it possible to export that value?

And what should we do to export that value.

 

MvG

 

Peter

 

 

 

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Shun Hirayanagi
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.
April 13, 2015

This feature request was reported but hasn't been implemented.https://jira.atlassian.com/browse/JRA-40943
You should vote this issue and wait.

Otherwise, you could hack it at your own risk.
It is tricky but  possible to do so by editing a template file for XML export if your JIRA administrators permit.

As for version picker, replacing xml-version.vm with the following code may work.
However, I don't know what kind of side effects would be caused by changing this.

#if ($value)
    #foreach ($singleValue in $value)
&lt;customfieldvalue&gt;$xmlutils.escapeForCdata($!singleValue.toString())&lt;/customfieldvalue&gt;
    #end
#end
TAGS
AUG Leaders

Atlassian Community Events