Forums

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

Working with Jira Sprint through REST API

Jira Software Cloud REST API help us to manage/Call sprint data through REST API. You can use this REST API to build add-ons for Jira Software, develop integrations between Jira Software and other applications, or script interactions with Jira Software. In this Article I will guide you on Sprint and Board detail through REST API.

 

Creating a Sprint:

Create Jira Sprint Through REST API 

sprint is a set amount of time that a development team has to complete a specific amount of work. Sprints are generally planned to last about two weeks. Through REST API we can Creates a future sprint. Sprint name and origin board id are required. Start date, end date, and goal are optional. Note that the sprint name is trimmed. Also, when starting sprints from the UI, the "endDate" set through this call is ignored and instead the last sprint's duration is used to fill the form.

For more detail regarding sprint creation through REST API follow the link Above.

 

Creating a Sprint:

Get Jira Sprint Property 

Returns the value of the property with a given key from the sprint identified by the provided id. The user who retrieves the property is required to have permissions to view the sprint.

If you wanna learn more about sprint property then follow the link above.

 

Swap Jira Sprint:

Swap Jira Sprint 

Swap the position of the sprint with the second sprint is possible and we can achieve this easily with REST API. click above link to no more about swapping of the link.

 

Hope this will be helpful. Let me know if you have any query related to Jira. See you in the next post.

2 comments

Yatish Madhav
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.
May 19, 2023

Thank you for this @Deepak Rai 

Yatish Madhav
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.
May 19, 2023

@Deepak Rai - I am trying to create multiple sprints using Jira Automation rule with the following paylod:

{"name": "{{now.plusWeeks(6).withNextDayOfWeek("MON").format("d MMM")}} - {{now.plusWeeks(6).withNextDayOfWeek("FRI").format("d MMM uuuu")}} spr","startDate": "{{now.plusWeeks(6).withNextDayOfWeek("MON")}}","endDate": "{{now.plusWeeks(6).withNextDayOfWeek("FRI")}}","originBoardId":555,"goal": ""}

And then the next web request has the following (just changing the for 6s to 7s and then next will have four 8s and so on for following sprints)

{"name": "{{now.plusWeeks(7).withNextDayOfWeek("MON").format("d MMM")}} - {{now.plusWeeks(7).withNextDayOfWeek("FRI").format("d MMM uuuu")}} spr","startDate": "{{now.plusWeeks(7).withNextDayOfWeek("MON")}}","endDate": "{{now.plusWeeks(7).withNextDayOfWeek("FRI")}}","originBoardId":555,"goal": ""}

However, I am getting this error: 403: {"error": "Failed to parse Connect Session Auth Token"}

Please advise?

I am posting here too https://community.atlassian.com/t5/Jira-Software-questions/set-up-automation-creating-new-sprint/qaq-p/1929573

Thank you in advance

Yatish

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events