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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,226 views 14 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot