Extract custom field data from a JIRA ticket using SOAP API

Attempting to retrieve the ‘Phase’ value from JIRA-123 via SOAP in JIRA 5.1.3. My current method using component access fails.

TicketFetcher tf = TicketFetcher.obtain();
FieldAccessor fa = tf.accessField("Phase");
Object result = tf.fetchData("JIRA-123", fa);

hey i found that directly invoking the getCustomField func worked better for me, after mapping the ticket data roughy. not the cleanest workaround but it allowed me to grab the phase value without the component issues.

I encountered a similar issue while working with JIRA SOAP on earlier versions. I found that the custom field values were sometimes not directly accessible through component access. Instead, I opted to first load the complete ticket data and then searched for the custom field by its ID or by scanning the field map. This approach was more reliable especially when the SOAP API did not return valid objects with reusable component formatting. It required a bit of extra handling, but ultimately yielded the Phase value correctly.

I had to approach this slightly differently, as I discovered that the direct fetch sometimes skips full initialization of custom field metadata. What worked best for me was to first request the complete ticket details to ensure that all nested properties were properly instantiated. Once the data structure was fully loaded, I located the custom field by iterating over the ticket metadata and checking for the ‘Phase’ value using its unique identifier. Although this method introduced a bit more processing, it significantly improved consistency across different environment configurations.