Feature #5737

Custom Queries available through the REST Api

Added by Paolo Freuli over 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:2010-06-23
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:REST API
Target version:1.3.0
Resolution:Fixed

Description

It would be nice to have custom queries available via Rest Api.

query_id.PNG (13.7 KB) Alex Last, 2010-08-26 03:30

Associated revisions

Revision 6186
Added by Jean-Philippe Lang over 6 years ago

Makes custom queries available through the REST API (#5737).

History

#1 Updated by Alex Last over 7 years ago

+1. my application also requires retrieval of available "custom queries" from Redmine.

#2 Updated by Gao Yong Pan over 7 years ago

+1 need this one.

#3 Updated by Eric Davis about 7 years ago

  • Priority changed from High to Normal

What are you asking for here, to be able to run a custom query from the API? (giving you a list of issues) Or to be able to edit/create custom queries from the API?

#4 Updated by Alex Last about 7 years ago

what I need (and my guess is that's what the submitter meant too) is to get list of user's saved queries.
this is Redmine config page in my application:

I don't want to force users to go to Redmine web interface and look for "query ID". it would be much better to have "load queries" button, which would get list of queries from Redmine server and show them in combobox.

#5 Updated by Paolo Freuli about 7 years ago

Alexey Skor wrote:

what I need (and my guess is that's what the submitter meant too) is to get list of user's saved queries.
this is Redmine config page in my application:

I don't want to force users to go to Redmine web interface and look for "query ID". it would be much better to have "load queries" button, which would get list of queries from Redmine server and show them in combobox.

My request is about being able to retrieve the list of saved queries and to run a selected one.

#6 Updated by Paolo Freuli about 7 years ago

Eric Davis wrote:

What are you asking for here, to be able to run a custom query from the API? (giving you a list of issues) Or to be able to edit/create custom queries from the API?

My request is about being able to retrieve the list of saved queries and to run a selected one.

#7 Updated by Alex Last about 7 years ago

Any chance to have this implemented in Redmine 1.1.0?

#8 Updated by Alex Last almost 7 years ago

  • Assignee set to Jean-Philippe Lang

Jean-Philippe, I hope you don't consider this too impolite if I take the courage to reassign this task to you. This looks like an easy thing to implement and it would help me a lot.

In few words: I just need to load a list of saved queries from Redmine server (even "query name" and "id" is enough at this moment).
I don't see another way for my users to see which "saved queries" are available in their Redmine.

#9 Updated by RedminePro Yang almost 7 years ago

+1 for this feature

#10 Updated by Jean-Philippe Lang over 6 years ago

  • Subject changed from Custom Query available in Rest Api to Custom Queries available through the REST Api
  • Status changed from New to Closed
  • Target version set to 1.3.0
  • Resolution set to Fixed

Committed in r6186, try GET /queries.xml (see Rest_Queries).

#12 Updated by Alex Last over 6 years ago

the API works fine for me. thanks!

Also available in: Atom PDF