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

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

174 views 1 3
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