Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get "voters" for multiple issues

arLevi January 27, 2019

Hi, I have the following API:

> https://jiraserver.company.com/jira/rest/api/2/issue/PROJCET-1234/votes'

That's nice when a need a single request,

but I want to get the voters for 100 JIRAs - how can I do that in a single REST API vs initiating 100 requests toward the server such as:

> https://jiraserver.company.com/jira/rest/api/2/issue/PROJCET-1000/votes'

https://jiraserver.company.com/jira/rest/api/2/issue/PROJCET-1001/votes'

https://jiraserver.company.com/jira/rest/api/2/issue/PROJCET-1002/votes'

 

Is there a way ?

1 answer

1 accepted

0 votes
Answer accepted
Craig Castle-Mead
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 27, 2019

Hi,

The method you’re using is the only documented way to get votes, so looping through from 1-n would be the way forward.

if you have the skill set available, or it’s worth outsourcing to get this functionality, you could have a custom API endpoint added where you could post a set of issue IDs, that would leverage the internal Java APIs to get the votes and then format and return that to your application.

 

CCM

Suggest an answer

Log in or Sign up to answer