Forums

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

Create a Scrum Board with Sample Data via API

MBF Admin February 10, 2021

Hi all, 

I am trying to create Scrum boards with sample data via the API. I found the endpoint via the inspect tool under the network tab of my browser. The endpoints I have found in the online docs have not enabled me to achieve what I am looking for (Create board+project with sample data.) 

https://<orgname>.atlassian.net/rest/greenhopper/1.0/welcome/createProject

{
"preset": "scrum",
"projectKey": "APITEST4",
"projectLeadAccountId": "<accountID>",
"projectName": "API TEST 4",
"sampleData": true
}
{
Authorization: Basic <base64encoded username:apikey>,
Content-Type: application/json
}

I am able to call this using basic authentication in Postman, however once I move to my other tool, when I provide the header for authorization, I get an empty response from the API and no boards created. Is there a better way to go about this, or does anyone have any idea why the API isn't returning anything? Assuming the fact that it isn't a publicly supported endpoint plays a large part in this.

 

The "scrum board with sample data" I can spin up via the UI allows me to create a project, along with a board, and fill it with sample data. The "create board" endpoint only allows me to create a board and point it at a project and does not give me the option for sample data.

2 answers

1 accepted

1 vote
Answer accepted
mogavenasan
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.
February 10, 2021

Hi @MBF Admin,

The correct REST API for Jira Software Cloud is at https://developer.atlassian.com/cloud/jira/software/rest/intro/. You might want to give this a try. 

MBF Admin February 10, 2021

As i said in my response to the other person, using these endpoints I do not have the ability to generate "sample data" for a new board I create. This is the main reason why I am using this other endpoint. It also doesn't create a project. Maybe I should create a project, then a board? And then fill with sample data somehow?

mogavenasan
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.
February 11, 2021

Okay, since you have tested it on Postman and it works - that means there is something wrong with the other tool you are using.

  1. What is this other tool?
  2. How's the REST API is being called?
  3. I believe you have to do a POST request, how do you set that in this other tool?
MBF Admin February 12, 2021

EDIT: @mogavenasan got it working, was a dumb mistake on my part, one my headers was Content/Type instead of Content-Type

Like mogavenasan likes this
0 votes
Trudy Claspill
Community Champion
February 10, 2021

Hello @MBF Admin 

Try working with the current REST API endpoints for JIRA Cloud.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/

MBF Admin February 10, 2021

Using these endpoints I do not have the ability to generate "sample data" for a new board I create. This is the main reason why I am using this other endpoint. It also does not create a project?

Suggest an answer

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

Atlassian Community Events