Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How do update Story Point uisng the Issue ID

Hi Team,

I wanted to just update Story Point using the issue id, I tried the below request

URL - https://subdomain.atlassian.net/rest/api/3/issue/<Issue ID or Key>

Method: PUT

Body:

{
    "updates": {
        "fields": {
            "customfield_10002"9
        }
    }
}
Error
{
    "errorMessages": [
        "one of 'fields' or 'update' required"
    ],
    "errors": {}
}
Here I just wanted to update the Story Point for a particular story. I don't want to update other properties.
Could someone please help here?
Thanks,
Pranab

1 answer

1 vote

Hi @pranab_bhatta 

Welcome to the Atlassian Community!!

First, get the issue ID from the GET request

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get

Next for the sprint, you need to have the custom field ID as in this case my site's custom field was customfield_10020

You need to make the PUT call to update the sprint

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put

curl -i --request PUT \
--url 'https://yoursite.atlassian.net/rest/api/3/issue/WSP-128' \
--user 'email:token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{ "fields": { "customfield_10020": 3 } }'

Thanks,
Pramodh

Hi Pramodh - Thanks for the reply.

 

I tried, but getting below error -

{
    "errorMessages": [],
    "errors": {
        "customfield_10002""Field 'customfield_10002' cannot be set. It is not on the appropriate screen, or unknown."
    }
}
I have used the Issue ID or Key to update the story point.
Thanks,
Pranab

Suggest an answer

Log in or Sign up to answer
TAGS

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