Routing Response messages from JIRA

JIRA Adapter supports converting synchronous responses from JIRA as Response Messages which can be routed in Service-Flow as any other messages.

In addition to information returned from JIRA, the response might contain fields added by Service-Flow. These fields are prefixed with sf:

Response message fields

The fields included in the Response message depends on the operation (Create / Update) and whether the operation was successful.

Successful Create

FieldDescriptionExample

issue.fields.key

The key of the created issue

SD-999

issue.fields.idID of the created issue

2345

issue.fields.selfURI to the created issue in JIRA

https://company-x.atlassian.net/rest/api/latest/issue/2345

sf:warningsPossible warnings generated by Service-Flow. Only present if there was some problems after the initial issue create operation.

Unable to do transition. Transition 'Resolve' is not allowed, available transitions are '[Start Progress, To Backlog]'

Failed Create

FieldDescriptionExample
errorsPossible error returned by JIRA. For example if some field can't be set

unknown_field: Field 'unknown_field' cannot be set. It is not on the appropriate screen, or unknown.

errorMessagesPossible error messages returned by JIRA.

Field 'priority' is required

sf:errorsPossible errors generated by Service-Flow. For example if the message doesn't contain any fields.

Can't create issue. No fields given.

Successful Update

FieldDescriptionExample
issue.fields.keyThe key of the updated issueSD-999
sf:warningsPossible warnings generated by Service-Flow. Only present if there was some problems after the initial issue update operation.

Unable to do transition. Transition 'Resolve' is not allowed, available transitions are '[Start Progress, To Backlog]'

Failed Update

FieldDescriptionExample
issue.fields.keyThe key of the updated issueSD-999
errorsPossible error returned by JIRA. For example if some field can't be set

unknown_field: Field 'unknown_field' cannot be set. It is not on the appropriate screen, or unknown.

errorMessagesPossible error messages returned by JIRA.

Field 'priority' is required

sf:errorsPossible errors generated by Service-Flow. For example if the message doesn't contain and fields, comment nor transition.

Can't update issue. Nothing to do.