Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 295233

Summary: custom custom fields are erased on submit
Product: z_Archived Reporter: Christian Reimann <christian.reimann>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: https://studio.atlassian.com/browse/PLE-913
Whiteboard:
Bug Depends on:    
Bug Blocks: 249057    

Description Christian Reimann CLA 2009-11-16 06:44:14 EST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 (.NET CLR 3.5.30729)
Build Identifier: M20080911-1700

I created an own custom field type in Jira, which basically is a single selectbox filled with values from the database. I'd like to view this field in the Mylyn task editor, but although i considered the limitations mentioned on http://wiki.eclipse.org/Mylyn/FAQ#JIRA_Connector, the field value is not being displayed.

It is even worse that saving the issue in the task editor causes the erasure of the custom field value in Jira. As far as i could analyze, the SOAP response from the Jira API delivers the correct custom field value to mylyn. But i don't see the reason why it is not written back properly.

Mylyn/Jira Connector Version: 3.3.0 v20091015-0500-e3x

Reproducible: Always

Steps to Reproduce:
1. Create a custom field type plugin in Jira
2. Fill the edit-template with a regular <select> box
3. Add a custom field that uses the new field-type
4. Create a new issue & fill the custom field
5. Query the issue in mylyn
Comment 1 Steffen Pingel CLA 2009-11-16 13:15:28 EST
The support for custom fields is unfortunately limited at the moment. It would help if you could attach the XML output for a task that has one of these custom fields (use the XML link in the top left when viewing an issue in the web browser).
Comment 2 Christian Reimann CLA 2009-11-17 04:03:53 EST
The <item> element from the xml export of the issue:

<item>
    <title>[BMF-294] TransactionTest</title>
    <link>http://<host:port>/browse/BMF-294</link>
    <project id="10005" key="BMF">BMF-Tasks</project>
    <description>Just a test..</description>
    <environment></environment>
    <key id="12197">BMF-294</key>
    <summary>TransactionTest</summary>
	<type id="16" iconUrl="http://<host:port>/images/icons/requirement.gif">Anforderung</type>
    <priority id="2" iconUrl="http://<host:port>/images/icons/priority_critical.gif">Hoch</priority>
    <status id="1" iconUrl="http://<host:port>/images/icons/status_open.gif">Offen</status>
    <resolution id="-1">Nicht erledigt</resolution>
    <assignee username="1234567">Reimann, Christian</assignee>
    <reporter username="1234567">Reimann, Christian</reporter>
    <created>Tue, 10 Nov 2009 10:28:54 +0100 (CET)</created>
	<updated>Tue, 17 Nov 2009 09:30:57 +0100 (CET)</updated>
    <component>Build: Framework- (Daily-) Build</component>
    <due>Sat, 28 Nov 2009 00:00:00 +0100 (CET)</due>
    <timeoriginalestimate seconds="14400">4 Stunden</timeoriginalestimate>
    <timeestimate seconds="14400">4 Stunden</timeestimate>
	<attachments></attachments>
    <subtasks>
	</subtasks>
    <customfields>                                                                                       
        <customfield id="customfield_10080" key="de.comdirect.jira:cd-cftype-transactionnumber">
            <customfieldname>Transactionnumber</customfieldname>
            <customfieldvalues>
                3.04.101
            </customfieldvalues>
		</customfield>
    </customfields>
</item>
Comment 3 Steffen Pingel CLA 2010-02-27 20:17:08 EST
The Mylyn JIRA Connector has moved to Atlassian. All unresolved Mylyn bugs assigned to the JIRA component, which includes this bug, have been copied to https://studio.atlassian.com/browse/PLE and marked as resolved on bugs.eclipse.org. The new location of this bug report can be found in the URL field. 

Please see this FAQ entry for further details: http://wiki.eclipse.org/Mylyn/FAQ#What_happened_to_the_Mylyn_JIRA_Connector.3F .