Jira API: How to fetch only scrum projects using API

Hi,

We are using GET /rest/api/2/project to get all projects from jira system. Is there a way to filter via API to get only scrum projects? 

2 answers

When you say scrum project i think it's projectTypeKey = software, right ? 

By API you cant filter directly on service. What you can do is try to filtering it by using tools like python -m json.tool, grep, sort and uniq. 

Thank you for the respone.

I am getting project type key and I am able to filter to Software level . But we want to filter further. In jira when creating software it gives 3 options scrum/kanban and basic software. So using the API to fetch projects I want to know if the project is scrum or kanban or basic software. 

0 vote
Sam Hall Community Champion May 09, 2017

The 'Scrum', 'Kanban' and 'Basic' options aren't really different types of projects, they are just templates that you can choose to set up your 'software' type project with some initial configuration (particular issue types, workflows, boards, etc).

Just because you picked the 'Basic' or 'Kanban' template, for example, doesn't stop you from adding a Scrum board to the project at a later date.

I'm not sure there is an easy way to identify which template was picked in the first place.

If you define a 'scrum' project as any project containing a scrum board then what you could do is:

Sam Hall Community Champion May 09, 2017

Or, of course, you could come at it the other way:

For each project returned by GET /rest/api/2/project, use GET /rest/agile/1.0/board + projectKeyOrId parameter to see if the project has any associated boards of type = 'scrum'.

Sam is right, a project is not "scrum" or "kanban", it's just a template guide for Software to create the first board for you (and choose fields, screens, workflows etc)

Consider the case where you have a filter of "Project = ABC".  You create a Scrum board from that filter.  Then you create a Kanban using the same filter.

Is that project Scrum or kanban?  It's both.  So there is no concept of projects of that type.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sarah Schuster
Posted Mar 28, 2018 in Jira Software

Can a company’s culture make or break agile adoption?

Can a new-to-agile team survive and thrive in a non-agile culture? If so, what advice would you give to those trying to be agile in a non-agile culture? What's the key(s) to success? Share your thoug...

11,974 views 15 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you