开发者

Get watched issues in Redmine via REST API

We're looking to create a tool to help with time management in Redmine. The issue we are currently having is that we want to get a list of issues that are watched by a particular user but can't find an API for it. Does anyone know if this is possible or are we just going to have to try and modify Redmine directly?

SOLUTION: Similar to the solution provided below by dmf85, I found a solution to this problem that worked for me. The Issues API takes a query_id as one of its parameters. What I ended up doing was filtering my issues by Watcher (like dmf85 said) then saving the qu开发者_StackOverflow中文版ery. I then used the query_id from that saved custom query in my API call.


At least in Redmine 3.1, there’s an undocumented parameter for the Issues API that allows you to specify a watcher directly: watcher_id. It works just like assigned_to_id, you can pass either a user ID (i.e. watcher_id=23) or the special string me (i.e. watcher_id=me).

An example of URL could be like the following: https://example.com/redmine/issues.json?watcher_id=me&key=redmine_api_key


Under your issues tab in the interface, click:

  • add filter
  • watcher
  • select a watcher in the box

Then, click the atom, csv, or pdf link at the bottom for a link that you can write a program to consume at your discretion.

Does this help?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜