Forums

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

Inquiry on Sprint Health Gadget

Tristen John Bagain
October 8, 2023

Hi,

 

Need to understand the algorithm used in the yellow section on the sprint health gadget. Is it based off the difference between Original Estimate and Time Remaining?sprint health.JPG

This page https://confluence.atlassian.com/agile064/jira-agile-user-s-guide/using-the-jira-agile-gadgets/using-the-sprint-health-gadget doesn't explain that part.

1 answer

0 votes
Alexey Matveev
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 Champions.
October 17, 2018
Tim Cares
October 18, 2018

Thank you, I didn't know about that endpoint. But now I'm getting this error:

{"errorMessages":["No issue data was provided by request"],"errors":{}}

I confirmed that I have valid json in my file.

Alexey Matveev
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 Champions.
October 18, 2018

How did you confirm that you have a valid Json? Jira says there is no issue data.

Tim Cares
October 18, 2018

I just dumped the data into an online validator tool (I used https://jsonlint.com/). In any case, I was able to do this a different way by using the original issue endpoint and then just iterating over each JSON object and creating issues one by one.

Alexey Matveev
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 Champions.
October 18, 2018

If you validated a json, it does not mean that it will work. It must be of the required structure and your json is not.

Tim Cares
October 19, 2018

Okay, well,l as I noted, I rewrote my code so that it just feeds one JSON object at a time to the issue endpoint and that worked, so still not sure why the bulk endpoint did not. At this point, I can close this topic.

Nil Ister
Contributor
October 21, 2019

If you're using Python and Requests library following might be helpful.

In your post request don't forget to give data attribute the issues in json format

url='https://www.random.com'
data=json.dumps(all_issues)
headers={'Content-Type': 'application/json'}

response = requests.post(url, data=data, headers=headers)

 

Chris Burgdorff
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 21, 2025

I'm getting the same:
No issue data was provided by request

And I'm like 90% sure the req body is formatted right, according to those docs. Is this just an outdated endpoint?

I could do what Tim did and just iterate through them, but that's not a great solution if you have a lot of issues to create.

Chris Burgdorff
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 21, 2025

Nevermind. I got it working!

All the fields besides update are subdfields of "fields". Here is my working code:

const issuesToCreate: {

  update: object;

  fields: { project: { id: number },

  summary: string,

  issuetype: { id: number },

  description: string,

  assignee?: { name: string } | null,

}}[] = [];

actionItems.forEach((actionItem: ActionItem) => {

  issuesToCreate.push({

    update: {},

    fields: { project: { id: project.id} ,

    summary: actionItem.title,

    description: actionItem.actionItem,

    issuetype: { id: selectedIssueType.id },

    ...(actionItem.responsibleParty ? {

      assignee: {

        name: actionItem.responsibleParty

      }

    } : {})

  }})

});

// Post to the bulk create API route to create the actual issues on Jira

const issueCreateResponse = await fetch(`https://${integration.Domain}/rest/api/2/issue/bulk`, {

  method: "POST",

  headers: {

    "Content-Type": "application/json",

    "Accept": "application/json",

    "Authorization": authHeader

  },

  body: JSON.stringify({issueUpdates: issuesToCreate}),

});

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events