Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Default board for project and sprints using .NET SDK

Steve Seyffert December 13, 2022

we have a tool we use that extracts project and Epic details from TFS, now migrating all that to Jira cloud.

 

I am planning to use the .NET SDK to do this and have made some progress making the connection, i can get all issues and filter those to get only Epics, i can get projects, etc.  what i am stuck with now is getting the sprint that the project is assigned to, all the available sprints for a board, etc. 

anyone have any examples of how to get a kanban board and associated sprints as well as which sprint an issue (Epic) is assigned to?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 13, 2022

Welcome to the Atlassian Community!

There are a few problems with this question:

  • Sprints do not belong to projects, not projects to sprints
  • Kanban boards do not use sprints
  • Projects do not (yet) have a default board
  • Epics do not go directly into sprints (usually) and may belong to many

But take a.look at https://developer.atlassian.com/cloud/jira/software/rest/intro/

Steve Seyffert December 15, 2022

is it possible to get the sprint(s) that an Epic is associated with?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2022

If you have set up Jira to that Epics can go into sprints, then yes, you can simply read the Sprint "field" from the issue.

Steve Seyffert December 16, 2022

field, as in a custom field i am guessing?  i don't see an Issue property that is for a sprint.  Sorry so very new to Jira, working on understanding the flow, architecture, hierarchy etc.  I appreciate your patience and assistance.

image.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 16, 2022

Correct, most Jira data is held in fields, properties are quite obscure and little used.

Steve Seyffert December 20, 2022

ok, thanks.. this really helps.  Once last question on the topic, while Sprints are not project or scrum based, that implies they are seperate, in and of themselves and other things can reference.  so my question is, where would the sprints be.  like for Epics and features, i can use Jira.Issues.GetIssue(...)

how do i get the defined Sprints?

Suggest an answer

Log in or Sign up to answer