PUT
/
integrations
/
jira
/
issuetemplates
/
{id}
Update Issue Templates
curl --request PUT \
  --url https://use.hoop.dev/api/integrations/jira/issuetemplates/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "cmdb_types": {},
  "connection_ids": [
    "<string>"
  ],
  "description": "<string>",
  "issue_transition_name_on_close": "done",
  "mapping_types": {},
  "name": "<string>",
  "project_key": "<string>",
  "prompt_types": {},
  "request_type_id": "<string>"
}'
{
  "cmdb_types": {},
  "connection_ids": [
    "<string>"
  ],
  "created_at": "<string>",
  "description": "<string>",
  "id": "<string>",
  "issue_transition_name_on_close": "done",
  "mapping_types": {},
  "name": "<string>",
  "project_key": "<string>",
  "prompt_types": {},
  "request_type_id": "<string>",
  "updated_at": "<string>"
}

Path Parameters

id
string
required

The id of the resource

Body

application/json

The request body resource

name
string
required

The name of the template

project_key
string
required

The project key which is the shortand version of the project's name

request_type_id
string
required

The request type that will be associated to the issue

cmdb_types
object

Cmdb Types are custom fields integrated with the Jira Assets API

{
"items": [
{
"description": "Service Field",
"jira_field": "customfield_10110",
"jira_object_type": "Service",
"required": true,
"value": "mydb-prod"
}
]
}
connection_ids
string[]

The connection IDs to associate with this template

description
string

The description of the template

issue_transition_name_on_close
string
default:done

The name of the issue transition to change the state of the issue when the session closes

mapping_types
object

The automated fields that will be sent when creating the issue. There're two types

  • preset: obtain the value from a list of available fields that could be propagated The list of available preset values are:

    - session.id
    - session.user_email
    - session.user_id
    - session.user_name
    - session.type
    - session.connection_subtype
    - session.connection
    - session.connection_tags.[key1]
    - session.connection_tags.[key2]
    - session.status
    - session.script
    - session.start_date
  • custom: use a custom static value

    {
    "items": [
    {
    "description": "Hoop Connection Name",
    "jira_field": "customfield_10050",
    "type": "preset",
    "value": "session.connection"
    }
    ]
    }
prompt_types
object

The prompt fields that will be show to user before executing a session

{
"items": [
{
"description": "Squad Name",
"jira_field": "customfield_10052",
"field_type": "text|select|datetime-local",
"label": "Squad Name",
"required": true
}
]
}

Response

Created

cmdb_types
object
connection_ids
string[]

The connection IDs associated with this template

created_at
string

The time when the template was created

description
string

The description of the template

id
string

The unique identifier of the integration

issue_transition_name_on_close
string

The name of the issue transition to change the state of the issue when the session closes

Example:

"done"

mapping_types
object
name
string

The name of the template

project_key
string

The project key which is the shortand version of the project's name

prompt_types
object
request_type_id
string

The request type id that will be associated to the issue

updated_at
string

The time when the template was updated