JIRA REST API获取工作日志-“您无权查看指定的问题” [英] JIRA REST API to get work log - "You do not have the permission to see the specified issue"

查看:183
本文介绍了JIRA REST API获取工作日志-“您无权查看指定的问题”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取有关Jira的指定问题的工作日志。根据该文档, https://docs.atlassian.com/jira/REST/latest/ #d2e774 我正在使用这种格式提供我的问题ID:

I want to get work log of a specified issue on Jira. According to this document https://docs.atlassian.com/jira/REST/latest/#d2e774 I'm using this format giving my issue id:


/ rest / api / 2 / issue / {issueIdOrKey } / worklog

/rest/api/2/issue/{issueIdOrKey}/worklog

尽管我已经登录了Jira,但出现了以下错误:

Although I have logged in Jira, I got this error:


{ errorMessages:[您无权查看指定的问题。,需要登录],错误:{}}

{"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}}

此外,我可以在Jira的界面上看到工作日志。我认为没有权限限制。有解决的帮助吗?

Besides, I can see work log on Jira's interface. I don't think there is an permission constraint. Any help to solve?

推荐答案

您的REST API请求需要进行身份验证。请阅读身份验证段落(从顶部起第4位): https://docs.atlassian.com/jira / REST /最新/

You REST API request need to be authenticated. Please read Authentication paragraph (4th from the top): https://docs.atlassian.com/jira/REST/latest/

最简单的方法是使用/ rest / auth / 1 / session: https://docs.atlassian.com/jira/REST/latest/#d2e3737

The easiest way is to use /rest/auth/1/session: https://docs.atlassian.com/jira/REST/latest/#d2e3737

这篇关于JIRA REST API获取工作日志-“您无权查看指定的问题”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆