Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Create a Scrum Board with Sample Data via API Edited

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

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?

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?

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

Hello @MBF Admin 

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

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

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
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,184 views 8 28
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you