techtalk / JiraRestClient

A simple client for Atlassian JIRA service REST API
Other
65 stars 80 forks source link

Updating an issue with only some fields deletes labels and timetracking #35

Closed truanh closed 8 years ago

truanh commented 8 years ago

We use the API to update a custom field when code is committed against an issue, or a build is done containing code for that issue. We do this by instantiating an empty issue, adding the id and filling in the required field then calling UpdateIssue.

This works well and only updates the required field and leaves most of them unchanged, except the Labels and time tracking fields.

Looking at the source it appears that the check is for whether these are null rather than their initialised values (which appear to be an empty array and an Timetracking object).

quexy commented 8 years ago

This is by design.