Hi,
I am trying to send a post request to jira rest api to create a new subtask but I am not able to edit/ store story points.
There is no key-pair available to send data about the story points.
Am I doing something wrong or is there no solution to it?
Here is my Request JSON -
data={
"fields":{
"parent":{
"id": task_id
},
"project":{
"Id":projectid
},
"summary":message,
"description" : msg,
"issuetype":{
"id":"5"
}}}
response = requests.post(url="{}/rest/api/2/issue/".format(server),json=data, headers={"Content-Type": "application/json"},auth=(username,password)) |
Hello,
Have a look for an answer here:
you need to define the id of your Story Points field and then add to the field part something like this:
"fields": { "customfield_10006" : 3 }
In the example above 10006 is the id of the Story Points field .
Hi Alexey,
I am trying to create a new subtask but sending this field throws an error. I am able to update the issue using this field but not during creating a subtask.
Any solution for it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It means that the Story point field is not on the subtask screen. Go to project settings -> screens. Find the create screen for the subtask issue type and add the Story Points field there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.