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.
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, since you have tested it on Postman and it works - that means there is something wrong with the other tool you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
EDIT: @mogavenasan got it working, was a dumb mistake on my part, one my headers was Content/Type instead of Content-Type
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @MBF Admin
Try working with the current REST API endpoints for JIRA Cloud.
https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.