jira-api-restclient icon indicating copy to clipboard operation
jira-api-restclient copied to clipboard

Use field names instead of field titles in "Issue" class

Open aik099 opened this issue 9 years ago • 0 comments

Problem

Right now the chobie\Jira\Issue class using field titles, when accessing fields in getter methods. This would end up badly, when field titles are changed on a JIRA installation OR an issue field automapping is turned off.

I recommend using JIRA field keys, which are immutable instead.

Solution

The getter methods of the "Issue" class (e.g. "getSummary", "getIssueType") to fallback to issue field ids (e.g. "issuetype" instead of "Issue Type"), when automapped field isn't found.

aik099 avatar Feb 27 '16 09:02 aik099