Endpoint details
In this document, you will find detailed info about Atlassian Jira Endpoint Type. This Endpoint Type is a Self-Service type, so users can add them without the need to reach out to ONEiO Support.
General | |
---|---|
Status | Sets the status of the endpoint. Active / Suspended. When an endpoint is suspended, it will continue to receive messages but won't process them. Instead, the messages will be temporarily stored in a queue and processed later once the endpoint status changes back to Active. It's important to note that during suspension, the endpoint will not send out any messages. |
URL | The base address of your Jira Instance. You can test the HTTP connection by clicking Test Connection button. Note that this function does not test the authentication, it tests only if ONEiO can reach the endpoint. |
Name | Name of the endpoint. It is recommended to use short names since this name is used in displays throughout ONEiO. |
Datetime pattern | Date time pattern ONEiO uses to read DateTime fields and how ONEiO sends out DateTime fields. Shown only for reference. |
[YourJira] -> ONEiO | |
---|---|
Webhook details | |
Webhook target address |
Target address to insert to your Jira's webhook configuration. The targets are different when operating in QA or Production.
|
Inbound authentication |
In edit mode, you can reset and retrieve a new authentication token. Replace [CUSTOMER_SPECIFIC_TOKEN] for this new token in the Webhook target address |
Inbound Whitelist Filter |
With this property, you can define conditions to ignore messages arriving from your Jira instance to ONEiO. You can have one or more conditions. The different conditions are separated with comma (,). The logical operator between conditions is always "AND". Supported operations in a single condition are:
Example 1 (Only allow messages from a certain project and filter out messages that were triggered because of messages from ONEiO into Jira. Replace <ACCOUNT_ID> with the integration user's accountId and <PROJECT_KEY> with project key): user.accountId!=<ACCOUNT_ID>,comment.author.accountId!=<ACCOUNT_ID>,attachment.author.accountId!=<ACCOUNT_ID>,sf:request:param:project.key=<PROJECT_KEY> Example 2 (Showcasing different operators): attr_1=foo,attr_2==${param:project.key},attr_3!=${username},attr_4 IN (bar1, bar2, bar3) |
Entity Type Resolving | ONEiO needs to resolve the Entity Type from the inbound message. This configuration describes from what information it is done. |
Resolving Path | The field in the inbound message where we can identify the entity |
Resolving Values | Value matched is resolved to Entity Type. |
Fallback Entity Type | If no value is matched, the inbound message is resolved as the Entity Type defined here. |
ONEiO -> [YourJira] | |
---|---|
Integration user in Jira |
JIRA user with privileges to create and edit issues. This user is included in all calls made from ONEiO to Jira's API, including updates and lookups. |
Password (API Token) | The password or API token to the integration user. Jira Cloud always requires API token, but some older on-prem Jiras might still use the password of the user. |
Unrecoverable HTTP error codes | List of numeric HTTP response codes that are to be handled as non-recoverable when sending messages to Jira's API. If ONEiO receives an error code that is not on the list, it will retry the message automatically. If ONEiO receives an error code that IS on this list, the message will result in an error. |
Entity types
Jira endpoint comes with two default entity types; Incident and Service Request. The entity type on ONEiO is equivalent to Jira's Issue Type. There is no need to use these ones, but you can use them as examples in case you wish to use some other Entity Types.
You can add new Entity Types freely. Remember to include the new Entity Type in the Resolving table (Entity Type Resolving section in the General Info tab).
Common HTTP error codes
Jira response errors usually return enough information about the error encountered.
The error can be returned as plain text or as a JSON. Examples:
401 - Unauthorized
Basic authentication with passwords is deprecated.
For more information, see: https://developer.atlassian.com/cloud/confluence/deprecation-notice-basic-auth/
404 - The issue doesn't exist
{
"errorMessages": [
"Issue does not exist or you do not have permission to see it."
],
"errors": {}
},
400 - Missing project id/key
{"errorMessages":[],"errors":{"project":"Specify a valid project ID or key"}}
Error | problem |
---|---|
401 |
Authentication credentials are incorrect or missing. |
403
|
Usually related to user's permission issues |
404 | Issue (incident) is not found or the user does not have permission to view it. |
400 |
Returned when there is missing data in the payload, for instance:
|
Comments
Article is closed for comments.