Hey Team
we have multiple issues. in all the issue have different kind of label
like stage-FE, stage-BE, prod-FE, prod-BE and all labels are associate in single board and in single project
so i am looking for rest api from where i can get all issue id which have specific labels
earlier response is very helpfull
Thanks
Hi @akshay_solanki ,
Welcome to the community!
So, if I get this right, you want a list of issue keys (DEV-1 etc.) of all the issues that have a specific label. I'm gonna recommend using Jira Expressions to get there.
The way to do this is to send a request to the expressions endpoint that includes a JQL query to select the issues you want. This could look like this:
labels in (stage-FE, stage-BE, prod-FE, prod-BE)
As you only want the issue keys, you also add a simple Jira Expression like this:
issues.map(i => i.key)
And that's it. The endpoint should return a list like this:
[
"DEV-200",
"PRJ-560",
"MAU-559"
]
If you only need to do this every now and then or want to play around with Expressions a bit more, I can also recommend our free Expression Tester app, which lets you run any expression quickly from your browser.
Hope that helps,
Oliver
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.