Create or update Story point in JIRA using API not working

Dilna
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!
February 21, 2025

I tried to update story point in JIRA using the following API

$data = [

   'update' => [

      'Story Points' => [

          ['set' => (int) $storyPoints]

       ]

   ]

];

$url = "/rest/api/3/issue/{$issueKey}";

But I got the error as follows,

Story Point Update Failed: Client error: resulted in a `400 Bad Request` response: {"errorMessages":[],"errors":{"Story Points":"Field 'Story Points' cannot be set. It is not on the appropriate screen, o (truncated...)

1 answer

0 votes
Vishal Biyani
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 Leaders.
February 21, 2025

@Dilna 

You need to associate Story Points with the screen to resolve this issue.

As Project Admin,

  • go Project Settings -> Screens
  • Issues -> Fields -> Actions -> Edit Fields
  • Search for field -> Click on Screen
  • Associate the field with the screen either Default or your project screen
  • This should resolve the error

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events