Subject: | assign_issue does't work anymore because jira insists on using accountID |
Date: | Tue, 18 Feb 2020 09:43:05 +0100 |
To: | bug-JIRA-Client-Automated [...] rt.cpan.org |
From: | Johan Laenen cpan <johan.laenen+cpan [...] gmail.com> |
Hi there,
Just a quick notification, because I noticed last week that the
assign_issue call doesn't work anymore. Personal data that is used to
identify users, such as the username and userKey, got removed from the REST
APIs. Users are identified by their Atlassian account ID (accountId)
instead. See
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/
.
Instead of using assign_issue I do this instead
$jira->update_issue( $issue->{key}, { "assignee" => { 'accountId' =>
$admin{'accountId'} } } );
$admin{'accountId'} is hardcoded. Jira::Client::Automated does not offer an
easy way to find the accountId.
Greetings,
Johan