From fa9c974796f87420587c8c7fa2ff43725da34b63 Mon Sep 17 00:00:00 2001 From: Robert Schilling Date: Tue, 15 Jan 2019 17:12:17 +0100 Subject: [PATCH] API: Support Jira transition ID as string --- ...jira-integration-api-doesn-t-respect-available-format.yml | 5 +++++ lib/api/services.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/55109-jira-integration-api-doesn-t-respect-available-format.yml diff --git a/changelogs/unreleased/55109-jira-integration-api-doesn-t-respect-available-format.yml b/changelogs/unreleased/55109-jira-integration-api-doesn-t-respect-available-format.yml new file mode 100644 index 00000000000..c58cdc19555 --- /dev/null +++ b/changelogs/unreleased/55109-jira-integration-api-doesn-t-respect-available-format.yml @@ -0,0 +1,5 @@ +--- +title: 'API: Support Jira transition ID as string' +merge_request: 24400 +author: Robert Schilling +type: fixed diff --git a/lib/api/services.rb b/lib/api/services.rb index 637b5a8a89a..e83d7c944e4 100644 --- a/lib/api/services.rb +++ b/lib/api/services.rb @@ -468,7 +468,7 @@ module API { required: false, name: :jira_issue_transition_id, - type: Integer, + type: String, desc: 'The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (**Administration > Issues > Workflows**) by selecting **View** under **Operations** of the desired workflow of your project. The ID of each state can be found inside the parenthesis of each transition name under the **Transitions (id)** column ([see screenshot][trans]). By default, this ID is set to `2`' } ],