如何通过 SOAP 或其他方式获取 Jira 用户的头像/图像

发布于 2024-10-18 07:23:49 字数 295 浏览 2 评论 0原文

我想显示在 Jira 项目中注册的开发人员的用户头像/图像。 Jira 有一个 Web 服务 API(我的版本是 4.2),但不幸的是我找不到提取用户头像的操作。只有提取项目头像的操作。

有人知道如何实现这一目标吗?

也可以通过 URL 访问用户头像,但我需要先进行身份验证。我有凭据(否则我将无法进行其他 SOAP 调用)并且基本领域身份验证应该可以工作,但没有。我总是被抛回登录 JSP。我还没有从这里开始调查,所以如果有人通过 SOAP 有更清晰的想法,或者无论如何这应该在 Jira 中工作,请提前感谢您!

干杯,维德兰

I'd like to display the user avatars/images of developers registered with a Jira project. Jira has a web service API (my version is 4.2), but unfortunately I can't find an action that would extract the user avatar. There are just actions to extract project avatars.

Does anybody happen to know how to achieve this?

The user avatar can also be reached via an URL, but I need to authenticate first. I have the credentials (otherwise I wouldn't be able to make my other SOAP calls) and basic realm authentication should work, but doesn't. I am always thrown back to a login JSP. I haven't investigated from here on yet, so if someone has a cleaner idea through SOAP or however this is supposed to work in Jira thank you in advance!

Cheers, Vedran

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

很酷不放纵 2024-10-25 07:23:49

您可以使用 REST API 获取它,例如 GET http://jira。 atlassian.com/rest/api/latest/user?username=lmiranda(您需要登录才能访问 JIRA 中的用户信息)。

响应示例:

{
   "self":"http://jira.atlassian.com/rest/api/latest/user?username=lmiranda",
   "name":"lmiranda",
   "emailAddress":"... at atlassian dot com",
   "avatarUrl":"http://jira.atlassian.com/secure/useravatar?size=large&ownerId=lmiranda",
   "displayName":"Luis Miranda [Atlassian]",
   "groups":{
      "size":5,
      "items":[

      ]
   },
   "expand":"groups"
}

有关详细信息,请参阅 REST API 文档

You can get it using the REST API, e.g. GET http://jira.atlassian.com/rest/api/latest/user?username=lmiranda (you need to be logged in to access user information in JIRA).

Example response:

{
   "self":"http://jira.atlassian.com/rest/api/latest/user?username=lmiranda",
   "name":"lmiranda",
   "emailAddress":"... at atlassian dot com",
   "avatarUrl":"http://jira.atlassian.com/secure/useravatar?size=large&ownerId=lmiranda",
   "displayName":"Luis Miranda [Atlassian]",
   "groups":{
      "size":5,
      "items":[

      ]
   },
   "expand":"groups"
}

See the REST API Documentation for more info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文