Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Determine what status progressions are available for the given object by hitting the get list resource progressions endpoint. For example
Code Block
languagexml
titleGET
/issues/200/progressions.json
<data>
  <meta message="Everything executed as expected." more_info="https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok" status="ok"/>
  <response id="133" title="New Ticket">
    <status id="2" color="yellow" standing="open" title="Open"/>
  </response>
  <response id="139" title="Close Ticket">
    <status id="4" color="blue" standing="closed" title="Closed"/>
  </response>
  <response id="140" title="Waiting For Client">
    <status id="6" color="orange" standing="open" title="Waiting for Client"/>
  </response>
</data>
  1. By looking at the title and status details, determine the appropriate progression for your action. Keep track of the progression's id.
  2. Update the resource by posting the auto-progression ID to the auto progression endpoint for the resource.
100/auto.json
Code Block
languagexml
titlePOST
/issues/200/progressions/
133/auto.xml
<data>
  <meta message="Everything executed as expected." more_info="https://affinitylive.jira.com/wiki/display/APIS/Status+Codes#ok" status="ok"/>
  <response id="3071" title="Billing Issues Monthly to 3rd Party (Google)">
    <status id="2" title="Open"/>
  </response>
</data>

Endpoints

METHODENDPOINTDESCRIPTION
GET/:resource/:resource_id/progressionsReturns an array of available progression actions. An ID from this response can be used to progress the object to the specified status.
[PUT|POST]/:resource/:resource_id/progressions/:progression_id/autoAutomatically progresses the resource to the progressions next status if applicable. The updated resource is returned upon success.

...