I'm having a number of problems with the Tempo API--not sure where the stumbling point is.
For example, I'm trying to get the groups of a user: When I go to `https://issues.staging.dowjones.net/rest/api/2/user?username=nicholsp` the output is
{"self":"https://issues.dowjones.net/rest/api/2/user?username=nicholsp","key":"nicholsp","name":"nicholsp","emailAddress":"Paul.Nichols@dowjones.com","avatarUrls":{"16x16":"https://issues.dowjones.net/secure/useravatar?size=xsmall&avatarId=10122","24x24":"https://issues.dowjones.net/secure/useravatar?size=small&avatarId=10122","32x32":"https://issues.dowjones.net/secure/useravatar?size=medium&avatarId=10122","48x48":"https://issues.dowjones.net/secure/useravatar?avatarId=10122"},"displayName":"Nichols, Paul","active":true,"timeZone":"US/Eastern","groups":{"size":26,"items":[]},"expand":"groups"}
The fact that it says ` u'groups': { u'items': [], u'size': 26}` implies that I'm getting something (26 is the correct number of groups I am in) but I can't seem to find out how to actually get those names.
Hi Paul,
Try this:
https://issues.staging.dowjones.net/rest/api/2/user?username=nicholsp&expand=groups
Hope this helps?!
The expand tells the REST api to also include all the group related information. That is why the groups section is:
"groups":{"size":26,"items":[]},"expand":"groups"}
All expand key values can be used with the expand parameter from the REST GET request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, perfect! I was so close. Thanks! Do you happen to know where in the docs this is, if at all? I feel like I'm missing a chunk of them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
It is indeed in the documentation, but most people look over it :) Checkout the Expansion in the REST API's section:
https://docs.atlassian.com/software/jira/docs/api/REST/latest/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah! These _are_ the docs I'm looking for. Thank you--I couldn't find them. Do you know if there are other hidden docs somewhere that might help me answer this? https://answers.atlassian.com/questions/297703/get-tempo-team-members-with-api
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.