Skip to content

perform transition independent of localization? #323

@wivaku

Description

@wivaku

I use this to prepare a transition.

    $transition->setTransitionName('Done');

However, when I use the API key of a different user it does not work. That user has set his profile to Dutch.

This results in an error message:
JiraRestApi\JiraException: Transition name 'Done' not found on JIRA Server

Is there a way to perform the transition or set the transition name independent of the local language of the user? The API seems to have (for a Status) both property name and untranslatedName.

				"name": "Gereed",
				"untranslatedName": "Done",

(the Dutch translation for Done is Gereed)

https://xyz.atlassian.net/rest/api/2/project/JIR/statuses

			{
				"self": "https://xyz.atlassian.net/rest/api/2/status/10307",
				"description": "",
				"iconUrl": "https://xyz.atlassian.net/images/icons/statuses/closed.png",
				"name": "Gereed",
				"untranslatedName": "Done",
				"id": "10307",
				"statusCategory": {
					"self": "https://xyz.atlassian.net/rest/api/2/statuscategory/3",
					"id": 3,
					"key": "done",
					"colorName": "green",
					"name": "Gereed"
				}
			}

https://xyz.atlassian.net/rest/api/2/issue/JIR-2360/transitions

		{
			"id": "41",
			"name": "Gereed",
			"to": {
				"self": "https://xyz.atlassian.net/rest/api/2/status/10307",
				"description": "",
				"iconUrl": "https://xyz.atlassian.net/images/icons/statuses/closed.png",
				"name": "Gereed",
				"id": "10307",
				"statusCategory": {
					"self": "https://xyz.atlassian.net/rest/api/2/statuscategory/3",
					"id": 3,
					"key": "done",
					"colorName": "green",
					"name": "Gereed"
				}
			},
			"hasScreen": false,
			"isGlobal": true,
			"isInitial": false,
			"isAvailable": true,
			"isConditional": false
		}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions