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
Unknown Object (File)
Fri, May 3, 1:06 AM
Unknown Object (File)
Tue, Apr 30, 9:06 PM
Unknown Object (File)
Mon, Apr 29, 2:56 PM
Unknown Object (File)
Sat, Apr 27, 8:29 PM
Unknown Object (File)
Fri, Apr 26, 9:43 AM
Unknown Object (File)
Wed, Apr 24, 10:51 PM
Unknown Object (File)
Sat, Apr 20, 5:13 PM
Unknown Object (File)
Feb 17 2024, 12:17 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