Not able to start sprint using python-jira API

I am trying to start a sprint using python-JIRA API:

jira.update_sprint(13, state='ACTIVE')

 

I seeing following error:

esponse text = {"message":"Unrecognized field \"state\" (Class com.atlassian.greenhopper.web.rapid.sprint.model.UpdateSprintRequest), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@15ae364; line: 1, column: 12] (through reference chain: com.atlassian.greenhopper.web.rapid.sprint.model.UpdateSprintRequest[\"state\"])","status-code":500,"stack-trace":"org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field \"state\" (Class com.atlassian.greenhopper.web.rapid.sprint.model.UpdateSprintRequest), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@15ae364; line: 1, column: 12] (through reference chain: com.atlassian.greenhopper.web.rapid.sprint.model.UpdateSprintRequest[\"state\"])\n\tat org.codehaus.jackson.map.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:53)\n\tat org.codehaus.jackson.map.deser.StdDeserializationContext.unknownFieldException(StdDeserializationContext.java:267)\n\tat org.codehaus.jackson.map.deser.std.StdDeserializer.reportUnknownProperty(StdDeserializer.java:673)\n\tat org.codehaus.jackson.map.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:659)\n\tat org.co

 

Please someone help with this.

1 answer

0 vote

It looks like the python-JIRA API is sending data that JIRA does not need or expect.

Have you tried making the call over the REST API (this is what the python wrapper calls, so it's worth checking if that gives a similar error)?

 

Can you point me such link, how i can call those APIs from python.

See https://docs.atlassian.com/jira-software/REST/latest/#agile/1.0/sprint and have a look at the "update" call which starts sprints.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

505 views 3 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you