<分区>
JIRA Atlassian 是否有任何 API 来获取项目图标/ Logo 。
我正在使用/rest/api/latest/project API 从 JIRA Atlassian 获取项目详细信息,但是此 api 中没有针对每个项目的项目头像。
<分区>
JIRA Atlassian 是否有任何 API 来获取项目图标/ Logo 。
我正在使用/rest/api/latest/project API 从 JIRA Atlassian 获取项目详细信息,但是此 api 中没有针对每个项目的项目头像。
最佳答案
如果您使用以下方式检索项目的详细信息:GET /project/{projectIdOrKey}你会得到这样的结果:
{
"expand": "description,lead,url,projectKeys",
"self": "http://www.example.com/jira/rest/api/2/project/EX",
"id": "10000",
"key": "EX",
"description": "This project was created as an example for REST.",
"lead": {
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"name": "fred",
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
"24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
"16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
"32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
},
"displayName": "Fred F. User",
"active": false
},
...
"avatarUrls": {
"48x48": "http://www.example.com/jira/secure/projectavatar?size=large&pid=10000",
"24x24": "http://www.example.com/jira/secure/projectavatar?size=small&pid=10000",
"16x16": "http://www.example.com/jira/secure/projectavatar?size=xsmall&pid=10000",
"32x32": "http://www.example.com/jira/secure/projectavatar?size=medium&pid=10000"
},
"projectCategory": {
"self": "http://www.example.com/jira/rest/api/2/projectCategory/10000",
"id": "10000",
"name": "FIRST",
"description": "First Project Category"
}
}
avatarUrls 部分提到了不同分辨率下项目图标的 URL。
请注意,lead 下还有一个 avatarUrls 部分。这提到了项目负责人头像的 URL。
关于jira - 是否有 JIRA Rest API 来获取 JIRA 项目的 Logo /图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38070829/
相关文章:
java - Jira 6.1.6 Java REST api - 无法设置自定义下拉值
rest - 如何通过 REST API 更新 JIRA 中的自定义字段?
java - JIRA REST API,java请求/响应
linux - Linux 上的 jira 主目录错误 "Could not create jira.home directory"
maven - 只有 1 个测试类正在运行并且 TestNG 执行挂起
jira-rest-api - 使用 python 提取更改日志的问题
c# - 通过rest api c#在jira中设置自定义单选按钮字段
rest - 如何使用 REST API 和 XRay for JIRA 和 Cucumber + Xray 导入测试执行结果