Page MenuHomePhabricator

Use "rest/api/3/myself" to retrieve JIRA profile details, not "rest/auth/1/session"
ClosedPublic

Authored by epriestley on Apr 25 2020, 9:00 PM.
Tags
None
Referenced Files
F13528298: D21170.id.diff
Fri, Jul 26, 7:15 PM
F13521281: D21170.diff
Fri, Jul 26, 5:05 AM
Unknown Object (File)
Sun, Jul 21, 6:56 AM
Unknown Object (File)
Fri, Jul 19, 2:56 AM
Unknown Object (File)
Sat, Jul 6, 2:02 PM
Unknown Object (File)
Fri, Jul 5, 2:48 AM
Unknown Object (File)
Thu, Jul 4, 10:42 AM
Unknown Object (File)
Tue, Jul 2, 9:20 AM
Subscribers
None

Details

Summary

Ref T13493. At time of writing, the old API method no longer functions: 1/session does not return an accountId but all calls now require one.

Use the modern 3/myself API instead. The datastructure returned by 2/user (older appraoch) and 3/myself (newer approach) is more or less the same, as far as I can tell.

Test Plan

Linked an account against modern-at-time-of-writing Atlassian-hosted JIRA.

Diff Detail

Repository
rP Phabricator
Branch
jira1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24226
Build 33367: Run Core Tests
Build 33366: arc lint + arc unit