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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira API end point for adding Story Points in a Issue

Deleted user Oct 21, 2021

Jira API end point for adding Story Points in a Issue

1 answer

1 vote
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 21, 2021

Hi @[deleted],

Welcome to Atlassian Community!

Story Points is just a custom field so the end point you are looking for is Edit issue.

Deleted user Oct 21, 2021

Thanks @Mikael Sandberg for the quick response, could you please share me body schema that I need to pass for updating the story points for a particular issue? 

Like xiangzhongwu likes this
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 21, 2021 • edited
{ 
"fields": {
"Story Points" : <Number>
}
}

This is all you need to send in the body.

Deleted user Oct 22, 2021

Hi @Mikael Sandberg ,

Getting below error when i tried Edit Issue endpoint, could you please help? Did i anything?

Error

 "errors": {
        "Story Points""Field 'Story Points' cannot be set. It is not on the appropriate screen, or unknown."
    }
End Point URL : PUT {{JiraURL}}/rest/api/3/issue/{issueIdOrKey}
Body
{ 
"fields": {
"Story Points" : 10
}
}
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 22, 2021

The clue is in the error message. You have to make sure Story Points is on the edit screen.

Deleted user Oct 22, 2021

Hi @Mikael Sandberg -  Could you elaborate more on below point please? You have to make sure Story Points is on the edit screen.

 

In my Jira Issue i can see the Story Points field available and manually i am able to update as well.

Like G H Mahimaanvita likes this
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 22, 2021

You have to make sure Story Points is on both your create screen and edit screen. Go to project settings and check you screen scheme.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 22, 2021
Deleted user Oct 22, 2021

Hi @Mikael Sandberg Just checked its there.

Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 22, 2021

Instead of using "Story Points" have you tried using the ID for the field instead? It is something like this: customfield_123456. You can get the ID by going to Issues > Custom fields, search for Story Points and then click the three dot menu and hover over Details. The URL will show you the ID, it is the last part of the URL.

Deleted user Oct 23, 2021

Hi @Mikael Sandberg 

Tried with the above suggestion but still no luck. PFB Error

{
    "errorMessages": [
        "Issue does not exist or you do not have permission to see it."
    ],
    "errors": {}
}

As suggested above, the clue is in the error message.

Configure your Screen to include Story Points.

To update, you must use the custom field id. To find this, just do a Get on the request and see which custom field related to Story Points and then you should be good to go!

I am using the correct custom id, and my screen shows the field, but this doesn't seem to work. 

 

Has anyone been able to make story points work?  I'm able to set every other field. 

 

UPDATE! 

 

I made this work by using the REST "update" property instead of the "fields" property.

Suggest an answer

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

Atlassian Community Events