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)
Sun, Feb 2, 2:46 PM
Unknown Object (File)
Tue, Jan 28, 5:39 AM
Unknown Object (File)
Sat, Jan 25, 7:21 AM
Unknown Object (File)
Sat, Jan 25, 7:21 AM
Unknown Object (File)
Sat, Jan 25, 7:21 AM
Unknown Object (File)
Tue, Jan 21, 12:44 PM
Unknown Object (File)
Sat, Jan 18, 8:05 AM
Unknown Object (File)
Jan 1 2025, 4:09 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