forked from go-jira/jira
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Jira changed the format of the call to createmeta * config.yml should default to old way * add a jira server version variable to config.yml to tell cli which method call to make
- Loading branch information
Showing
8 changed files
with
463 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# TODO | ||
|
||
* https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html | ||
* Jira 9.0 moved the parameters on api/2/issue/createmeta into path values | ||
Need to allow both versions to function | ||
Need a configuration item to indicate which url/method to call | ||
Need to write the new method to conform to the new api method format | ||
Need new jiradata type because the api endpoint changed the output json schema | ||
* slipstream to create jiradata types | ||
slipscheme -stdout schema/IssueTypes.json > jiradata/IssueTypes.go | ||
|
||
* Old API Doc: https://docs.atlassian.com/software/jira/docs/api/REST/7.2.7/#api/2/issue-getCreateIssueMeta | ||
* New API Doc: https://docs.atlassian.com/software/jira/docs/api/REST/9.0.0/#issue-getCreateIssueMetaProjectIssueTypes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
package jiradata | ||
|
||
///////////////////////////////////////////////////////////////////////// | ||
// This Code is Generated by SlipScheme Project: | ||
// https://github.com/coryb/slipscheme | ||
// | ||
// Generated with command: | ||
// slipscheme -dir jiradata schema/IssueTypes.json | ||
///////////////////////////////////////////////////////////////////////// | ||
// DO NOT EDIT // | ||
///////////////////////////////////////////////////////////////////////// | ||
|
||
// PageOfCreateMetaIssueType defined from schema: | ||
// | ||
// { | ||
// "title": "Page of Create Meta Issue Type", | ||
// "id": "https://docs.atlassian.com/jira/REST/schema/page-of-create-meta-issue-type#", | ||
// "type": "object", | ||
// "properties": { | ||
// "last": { | ||
// "title": "last", | ||
// "type": "boolean" | ||
// }, | ||
// "size": { | ||
// "title": "size", | ||
// "type": "integer" | ||
// }, | ||
// "start": { | ||
// "title": "start", | ||
// "type": "integer" | ||
// }, | ||
// "total": { | ||
// "title": "total", | ||
// "type": "integer" | ||
// }, | ||
// "values": { | ||
// "title": "values", | ||
// "type": "array", | ||
// "items": { | ||
// "title": "Create Meta Issue Type", | ||
// "type": "object", | ||
// "properties": { | ||
// "avatarId": { | ||
// "title": "avatarId", | ||
// "type": "integer" | ||
// }, | ||
// "description": { | ||
// "title": "description", | ||
// "type": "string" | ||
// }, | ||
// "expand": { | ||
// "title": "expand", | ||
// "type": "string" | ||
// }, | ||
// "fields": { | ||
// "title": "fields", | ||
// "type": "object", | ||
// "patternProperties": { | ||
// ".+": { | ||
// "title": "Field Meta", | ||
// "type": "object", | ||
// "properties": { | ||
// "allowedValues": { | ||
// "title": "allowedValues", | ||
// "type": "array", | ||
// "items": {} | ||
// }, | ||
// "autoCompleteUrl": { | ||
// "title": "autoCompleteUrl", | ||
// "type": "string" | ||
// }, | ||
// "defaultValue": { | ||
// "title": "defaultValue" | ||
// }, | ||
// "fieldId": { | ||
// "title": "fieldId", | ||
// "type": "string" | ||
// }, | ||
// "hasDefaultValue": { | ||
// "title": "hasDefaultValue", | ||
// "type": "boolean" | ||
// }, | ||
// "name": { | ||
// "title": "name", | ||
// "type": "string" | ||
// }, | ||
// "operations": { | ||
// "title": "operations", | ||
// "type": "array", | ||
// "items": { | ||
// "type": "string" | ||
// } | ||
// }, | ||
// "required": { | ||
// "title": "required", | ||
// "type": "boolean" | ||
// }, | ||
// "schema": { | ||
// "title": "Json Type", | ||
// "type": "object", | ||
// "properties": { | ||
// "custom": { | ||
// "title": "custom", | ||
// "type": "string" | ||
// }, | ||
// "customId": { | ||
// "title": "customId", | ||
// "type": "integer" | ||
// }, | ||
// "items": { | ||
// "title": "items", | ||
// "type": "string" | ||
// }, | ||
// "system": { | ||
// "title": "system", | ||
// "type": "string" | ||
// }, | ||
// "type": { | ||
// "title": "type", | ||
// "type": "string" | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// }, | ||
// "iconUrl": { | ||
// "title": "iconUrl", | ||
// "type": "string" | ||
// }, | ||
// "id": { | ||
// "title": "id", | ||
// "type": "string" | ||
// }, | ||
// "name": { | ||
// "title": "name", | ||
// "type": "string" | ||
// }, | ||
// "self": { | ||
// "title": "self", | ||
// "type": "string" | ||
// }, | ||
// "subtask": { | ||
// "title": "subtask", | ||
// "type": "boolean" | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
type PageOfCreateMetaIssueType struct { | ||
Last bool `json:"last,omitempty" yaml:"last,omitempty"` | ||
Size int `json:"size,omitempty" yaml:"size,omitempty"` | ||
Start int `json:"start,omitempty" yaml:"start,omitempty"` | ||
Total int `json:"total,omitempty" yaml:"total,omitempty"` | ||
Values Values `json:"values,omitempty" yaml:"values,omitempty"` | ||
} |
Oops, something went wrong.