1 | <?php |
||
22 | class TransitionEndpoint extends IssueEndpoint implements EndpointInterface |
||
23 | { |
||
24 | const EP_TRANSITIONS = 'transitions'; |
||
25 | |||
26 | const PARAM_EXPAND = 'expand'; |
||
27 | |||
28 | const PAYLOAD_TRANSITION = 'transition'; |
||
29 | const PAYLOAD_FIELDS = 'fields'; |
||
30 | const PAYLOAD_RESOLUTION = 'resolution'; |
||
31 | |||
32 | /** |
||
33 | * Returns a full representation of the transitions possible for the specified issue and the fields required to |
||
34 | * perform the transition. [STATUS 200] |
||
35 | * |
||
36 | * @param string $issue JIRA ticket number |
||
37 | * |
||
38 | * @param string|null $expand [optional] Fields will only be returned if expand=transitions.fields. |
||
39 | * |
||
40 | * @return array |
||
41 | */ |
||
42 | public function getTransitions( |
||
55 | |||
56 | /** |
||
57 | * Perform a transition on an issue [STATUS 204] |
||
58 | * |
||
59 | * @param string $issue JIRA ticket number |
||
60 | * |
||
61 | * @param string $transitionId Transition ID |
||
62 | * @param string|null $resolutionId [optional] Resolution ID |
||
63 | * |
||
64 | * @param string|null $expand [optional] Fields will only be returned if expand=transitions.fields. |
||
65 | * |
||
66 | * @return array |
||
67 | */ |
||
68 | public function doTransition( |
||
100 | } |
||
101 |