Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display open issue count for JIRA filter #4426

Open
guusdk opened this issue Jan 5, 2024 · 0 comments
Open

Display open issue count for JIRA filter #4426

guusdk opened this issue Jan 5, 2024 · 0 comments

Comments

@guusdk
Copy link
Contributor

guusdk commented Jan 5, 2024

When a project uses a JIRA filter to track issues that are up for grabs, the website should list the number of open issues (as it does for other trackers).

JIRA provides a REST API that can be used to collect the data. This can be used by supplying the filter identifier.

Given an up-for-grabs URL like this: https://igniterealtime.atlassian.net/issues/?filter=10004, take the filter ID (10004 in this example), and use it in a REST API call on the same site, like this: https://igniterealtime.atlassian.net/rest/api/2/search?jql=filter=10004

This will return a JSON result. One of the first few attributes returned is a 'total' count, that can be used on the up-for-grabs website:

{
   "expand":"schema,names",
   "startAt":0,
   "maxResults":50,
   "total":14,
   "issues": [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant