Using REST API, how do I know if the project is Scrum or Kanban or Basic

For project creation using REST API, we pass "projectTemplateKey" which is setup scrum, kanban or basic.

Similary, if the project is already created using JIRA UI, what is the REST API I should use to get the ProjectTemplateKey.

 

In the project json there is only projectTypeKey whcih says "software".

2 answers

This widget could not be displayed.

You don't - the scrum/kanban is only really part of the creation process.  It determines what board to create by default and the fields, workflows etc, but once created, the project is, well, a project.  You can create more boards that refer to it, of either scrum or kanban, and change the workflows, fields etc to make it work totally differently.

Hello Nic

To know, My project is SCRUM or Agile, Have you created any new API?
Answer of your post is of 2016. After that, if you have created any new API then please provide me its URL.

It's the same answer - projects are not "scrum" or "kanban", those words are just to select a board type to create alongside a Software project.  It's not stored, so there can't be a REST API for it.

Hi Nic,

Thanks for quick reply.

But if I want to know whether this project is in Agile or Scrum, then how will it?

 

All "scrum" projects are "Agile".

Yes, you can - you can get a list of boards for a project and the types of the boards - /rest/agile/1.0/board?projectKeyOrId={projectKeyOrId}

Nic Brough [Adaptavist] Community Champion Sunday

Nope.  That tells you about the board, not the project.  Boards do not belong to projects, and you can point many points to a project.  If I create a Scrum project, I get a scrum board at the same time, but I can point a Kanban board at it if I want as well.

I am a bit confused then, this endpoint shows each board's location (in a project) and it is not an array - it is a single value. So I assumed that each board belongs to a single project. 

Then you can get all boards belonging to a project here. And if all are of the same type you can safely assume this is the type of the project. If not, treat it as a mixed type project. Am I wrong?

Nic Brough [Adaptavist] Community Champion Sunday

A board can include issues from many projects.  You need to stop thinking of a board as being "in a project", as that's not true.  It can look like it, and the UI misleads us into thinking it in places, but a board can pull in many projects, and a project can be included in many boards.

>And if all are of the same type you can safely assume this is the type of the project

No.  I could create a Scrum project, create a couple of Kanban boards that include it, and delete the original scrum board.  The project would still be a scrum project, just one that has no scrum boards and several kanban boards looking at it.

This widget could not be displayed.

Thank you for explanation. Anyway, in my case board type was what I really need, so this endpoint fits me perfectly.

Mistakenly posted this here as a reply to Nic's reply below my comment. Seems no way to remove it now.

Nic Brough [Adaptavist] Community Champion Sunday

This forum platform is still lacking many of the functions Confluence Questions has, and moving/removing stuff is one of the these.

The way you are using your system now means that what you're doing is a perfectly good approach, and it will work fine for you.  My discussion was not to try to tell you to change (I'd rarely encourage change if the current thing is working!), just for the benefit of readers to understand how it works, so they can make it work for them.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

85 views 0 1
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