HomePhorge

Use "rest/api/3/myself" to retrieve JIRA profile details, not…

Description

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

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.

Maniphest Tasks: T13493

Differential Revision: https://secure.phabricator.com/D21170

Details

Provenance
epriestleyAuthored on Apr 25 2020, 1:58 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP40d2346f2965: Add a missing "null" check when rebuilding old/new diff content
Branches
Unknown
Tags
Unknown

Event Timeline