Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Explore creating report for bug count by Jira project ID and by issuuetype with name as "Bug"

HI Team, I need help with finding bugs by project id and by using issuetype which is having name as "Bug". 

My response looks like this :

"expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
"id": "*****",
"self": "*****",
"key": "****",
"fields": {
"issuetype": {
"self": "url",
"id": "*****",
"description": "Created by Jira Software - do not edit or delete. Issue type for a user story.",
"iconUrl": "https://jira.ascension.org/secure/viewavatar?size=xsmall&avatarId=****&avatarType=issuetype",
"name": "Bug",
"subtask": false,
"avatarId": 10315
}}, how to get response only for Bug as name in issuetype.

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 06, 2022

Hello @Lakshmij 

You showed us the response but what you need help with is the code you wrote. Please show us the code you wrote.

https://jira.ascension.org/rest/api/2/search?jql=project=projectId & issuetype.name=Bug

 

I'm trying with above url to search by project id and issuetype with name as "Bug", but name is lying inside issuetype which inturn reside in fields.

 

Need to find a way to search by using project id and issuetype with name as "Bug" in url query params or if any other way, please suggest . 

What I need exactly for the response having those records with issuetype with name as "Bug" only., not all records.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 07, 2022

Are you trying to execute this API call within a program? Can you show us the full line of code? 

Is "projectId" a variable that you are trying to use?

You should be able to use the same parameter string that you would see in the browser URL field if you did a search through the UI.

Screen Shot 2022-09-07 at 11.23.20 AM.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events