Skip to main content

Atlassian Jira Service Management

This Integration is part of the Atlassian Jira Service Management Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.10.0 and later.

Use this integration to manage Jira objects and attach files to Jira objects from Cortex XSOAR. This integration was integrated and tested with version 5.4.15 of AtlassianJiraServiceManagement.

Configure Atlassian Jira Service Management on Cortex XSOAR#

  1. Navigate to Settings > Integrations > Servers & Services.

  2. Search for Atlassian Jira Service Management.

  3. Click Add instance to create and configure a new integration instance.

    ParameterRequired
    Server URLTrue
    API TokenTrue
    Trust any certificate (not secure)False
    Use system proxy settingsFalse
  4. Click Test to validate the URLs, token, and connection.

Commands#

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

jira-asset-object-schema-list#


List all object schemas.

Base Command#

jira-asset-object-schema-list

Input#

Argument NameDescriptionRequired
limitThe maximum amount of schemas to retrieve. Cannot be used alongside the page and page_size arguments.Optional
all_resultsWhether to retrieve all object schemas with no limit. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
JiraAsset.Schema.IDNumberThe ID of the object schema.
JiraAsset.Schema.NameStringThe name of the object schema.
JiraAsset.Schema.KeyStringThe key of the object schema.
JiraAsset.Schema.StatusStringThe status of the object schema.
JiraAsset.Schema.CreatedDateThe date in which this object schema was created.
JiraAsset.Schema.UpdatedDateThe date in which this object schema was updated.
JiraAsset.Schema.ObjectCountNumberThe number of objects in the schema.
JiraAsset.Schema.ObjectTypeCountNumberThe number of different object types in the schema.

jira-asset-object-type-list#


List all object types.

Base Command#

jira-asset-object-type-list

Input#

Argument NameDescriptionRequired
schema_idThe schema from which the command will retrieve object types. Values can be received by running the jira-asset-object-schema-list command.Required
excludeObject types with that name will be excluded from the results.Optional
limitThe maximum amount of object types to retrieve.Optional
all_resultsWhether to retrieve all object types with no limit. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
JiraAsset.ObjectType.IDNumberThe ID of the object type.
JiraAsset.ObjectType.NameStringThe name of the object type.
JiraAsset.ObjectType.TypeNumberThe type of the object type.
JiraAsset.ObjectType.PositionNumberThe position of the object type among other object types with the same level in the schema hierarchy.
JiraAsset.ObjectType.CreatedDateThe date the object type was created.
JiraAsset.ObjectType.UpdatedDateThe date the object type was last updated.
JiraAsset.ObjectType.ObjectCountNumberThe amount of objects listed under this object type.
JiraAsset.ObjectType.ObjectSchemaIdNumberThe ID of the schema this object type is listed under.
JiraAsset.ObjectType.InheritedBooleanWhether this object type inherits from a parent object type.
JiraAsset.ObjectType.AbstractObjectTypeBooleanIs this object type abstract (can only be inherited).
JiraAsset.ObjectType.ParentObjectTypeInheritedBooleanWhether this object type inherits from a parent object type.

jira-asset-object-type-attribute-list#


List all attributes for an object type.

Base Command#

jira-asset-object-type-attribute-list

Input#

Argument NameDescriptionRequired
object_type_idThe object type for which the command will retrieve attributes. Values can be received by running the jira-asset-object-type-list command.Required
is_editableWhether to only return attributes that can be edited. Possible values are: true, false.Optional
order_by_nameWhether to sort the results by the attribute name. Possible values are: true, false.Optional
queryQuery to filter on available object type attributes. Filter attributes that start with the query.Optional
include_value_existShould the response only include attributes where attribute values exists. Possible values are: true, false.Optional
exclude_parent_attributesShould the response exclude parent attributes. Possible values are: true, false.Optional
include_childrenShould the response include child attributes. Possible values are: true, false.Optional
order_by_requiredShould the response be ordered by the number of required attributes. Possible values are: true, false.Optional
limitThe maximum amount of object types to retrieve.Optional
all_resultsWhether to retrieve all object types with no limit. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
JiraAsset.Attribute.IDNumberThe ID of the attribute.
JiraAsset.Attribute.NameStringThe name of the attribute.
JiraAsset.Attribute.LabelBooleanWhether this attribute is used as the label for objects of that type.
JiraAsset.Attribute.TypeStringThe type of the attribute (Default, Reference, User, Project etc.).
JiraAsset.Attribute.DefaultType.idNumberID for the sub-type of the default type.
JiraAsset.Attribute.DefaultType.nameStringName for the sub-type of the default type.
JiraAsset.Attribute.EditableBooleanWhether this attribute is editable.
JiraAsset.Attribute.SystemBooleanWhether this attribute is a system attribute or a custom one.
JiraAsset.Attribute.SortableBooleanCan the objects be sorted by that attribute.
JiraAsset.Attribute.SummableBooleanCan this attribute be summarized.
JiraAsset.Attribute.IndexedBooleanIs this attribute indexed.
JiraAsset.Attribute.MinimumCardinalityNumberThe minimum amount of elements this attribute should populate.
JiraAsset.Attribute.MaximumCardinalityNumberThe maximum amount of elements this attribute should populate.
JiraAsset.Attribute.RemovableBooleanWhether this attribute can be removed from the object.
JiraAsset.Attribute.HiddenBooleanWhether this attribute is a hidden attribute.
JiraAsset.Attribute.IncludeChildObjectTypesBooleanWhether this attribute includes child object types.
JiraAsset.Attribute.UniqueAttributeBooleanWhether this attribute is unique to its object.
JiraAsset.Attribute.OptionsStringOptions for the attributes.
JiraAsset.Attribute.PositionNumberThe position of the attribute in relation to other object attributes.

jira-asset-object-create#


Create a new object of the specified object type ID. Either attributes or attributes_json must be provided.

Base Command#

jira-asset-object-create

Input#

Argument NameDescriptionRequired
object_type_idThe object type for which a new object will be created.Required
attributesProvide this field if attributes_json is not provided. A key-value map of object attributes. The structure of the field is: { "attributeId1": [ "value1", "value2"] , "attributeId2":["value1", "value2"] }. You can run the jira-asset-object-type-attribute-list command to retrieve the list of available attributes.Optional
attributes_jsonProvide this field if attributes is not provided. A JSON string of object attributes to be added to the new object. Take a look at https://docs.atlassian.com/assets/REST/10.7.0/#object-createObject for the structure of this field. You can use the jira-asset-object-type-attribute-list command to retrieve the list of available attributes.Optional

Context Output#

PathTypeDescription
JiraAsset.Object.IDNumberID of the newly created object.
JiraAsset.Object.LabelStringThe value of the attribute that is marked as Label for this object type.
JiraAsset.Object.ObjectKeyStringThe auto-generated object key.
JiraAsset.Object.Avatar.objectIdNumberID of the newly created object.
JiraAsset.Object.CreatedDateThe date in which this object was created.
JiraAsset.Object.UpdatedDateThe date in which this object was last updated.
JiraAsset.Object.HasAvatarBooleanDoes this object have an Avatar.
JiraAsset.Object.TimestampDateEpoch version of the object's creation date.
JiraAsset.Object.Links.selfStringThe link to view this object in the Jira web app.
JiraAsset.Object.NameStringThe name of the newly created object.

jira-asset-object-update#


Updates an existing object of specified object type ID. Either attributes or attributes_json must be provided.

Base Command#

jira-asset-object-update

Input#

Argument NameDescriptionRequired
object_idID of the object that will be updated.Required
attributesProvide this field if attributes_json is not provided. A key-value map of object attributes. The structure of the field is: { "attributeId1": [ "value1", "value2"] , "attributeId2":["value1", "value2"] }. You can use the jira-asset-object-type-attribute-list command to retrieve the list of available attributes.Optional
attributes_jsonProvide this field if attributes is not provided. A JSON string of object attributes to be added to the new object. Take a look at https://docs.atlassian.com/assets/REST/10.7.0/#object-createObject for the structure of this field. You can use the jira-asset-object-type-attribute-list command to retrieve the list of available attributes.Optional

Context Output#

There is no context output for this command.

jira-asset-object-delete#


Deletes an existing object of the specified object ID.

Base Command#

jira-asset-object-delete

Input#

Argument NameDescriptionRequired
object_idID of the object that will be deleted.Required

Context Output#

There is no context output for this command.

jira-asset-object-get#


Retrieves the object with the specified object ID.

Base Command#

jira-asset-object-get

Input#

Argument NameDescriptionRequired
object_idID of the object that will be retrieved.Required

Context Output#

PathTypeDescription
JiraAsset.Object.IDNumberID of the retrieved object.
JiraAsset.Object.LabelStringThe value of the attribute that is marked as Label for this object type.
JiraAsset.Object.ObjectKeyStringThe auto-generated object key.
JiraAsset.Object.CreatedDateThe date in which this object was created.
JiraAsset.Object.UpdatedDateThe date in which this object was last updated.
JiraAsset.Object.HasAvatarBooleanDoes this object have an Avatar.
JiraAsset.Object.TimestampDateEpoch version of the object's creation date.
JiraAsset.Object.ExtendedInfo.openIssuesExistsBooleanDoes this object appear in any open issues.
JiraAsset.Object.ExtendedInfo.attachmentsExistsBooleanDoes this object have any attachments.
JiraAsset.Object.Links.selfStringThe link to view this object in the Jira web app.
JiraAsset.Object.NameStringThe name of the object.

jira-asset-object-search#


Searches for objects of the specified object type.

Base Command#

jira-asset-object-search

Input#

Argument NameDescriptionRequired
ql_queryAn aql query to search objects by. View https://support.atlassian.com/jira-service-management-cloud/docs/use-assets-query-language-aql/ for further details.Required
include_attributesWhether to include the attributes structure in the response. Possible values are: true, false.Optional
pagePage number.Optional
page_sizeUse this argument or limit, but not both. Size of the page. Defaults to 50.Optional
limitUse this argument or a combination of page and page_size, but not both. Limit the number of entries returned by the command.Optional

Context Output#

PathTypeDescription
JiraAsset.Object.IDNumberID of the retrieved object.
JiraAsset.Object.LabelStringThe value of the attribute that is marked as Label for this object type.
JiraAsset.Object.ObjectKeyStringThe auto-generated object key.
JiraAsset.Object.CreatedDateThe date in which this object was created.
JiraAsset.Object.UpdatedDateThe date in which this object was last updated.
JiraAsset.Object.HasAvatarBooleanDoes this object have an Avatar.
JiraAsset.Object.TimestampDateEpoch version of the object's creation date.
JiraAsset.Object.Attributes.idNumberThe ID of the attribute.
JiraAsset.Object.Attributes.objectTypeAttributeIdNumberThe ID of the attribute, not relative to the object type.
JiraAsset.Object.Attributes.objectAttributeValues.valueStringThe value of the specific attribute for this object.
JiraAsset.Object.Attributes.objectAttributeValues.referencedTypeBooleanWhether this attribute is referenced by other types.
JiraAsset.Object.Attributes.objectAttributeValues.displayValueStringThe display value for this attribute.
JiraAsset.Object.Attributes.objectAttributeValues.searchValueStringThe search value for this attribute.
JiraAsset.Object.Attributes.objectIdNumberThe ID of the object this attribute is assigned to.
JiraAsset.Object.Links.selfStringThe link to view this object in the Jira web app.
JiraAsset.Object.NameStringThe name of the object.

jira-asset-attribute-json-create#


Utility command used to create a JSON file with all attributes of the specified object type. All that is left is to fill in the values of each attribute.

Base Command#

jira-asset-attribute-json-create

Input#

Argument NameDescriptionRequired
object_type_idID of the object type that attributes JSON will be created for. You could use the jira-asset-object-type-list command to find object types.Required
is_editableWhether to fetch only editable attributes. Possible values are: true, false.Optional
is_requiredWhether to fetch only required attributes. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
InfoFile.NamestringFile name.
InfoFile.EntryIDstringThe entry ID of the report.
InfoFile.SizenumberFile size.
InfoFile.TypestringFile type, e.g., "PE".
InfoFile.InfostringBasic information of the file.

jira-asset-comment-create#


Creates a comment for the specified object.

Base Command#

jira-asset-comment-create

Input#

Argument NameDescriptionRequired
object_idID of the object that the comment will be added to. You could use the jira-asset-object-search command to find objects.Required
commentBody of the comment that will be created.Required

Context Output#

PathTypeDescription
JiraAsset.Comment.CreatedDateThe date in which this comment was created.
JiraAsset.Comment.UpdatedDateThe date in which this object was last updated.
JiraAsset.Comment.IdNumberThe ID of the newly created comment.
JiraAsset.Comment.Actor.AvatarUrlStringURL to the avatar of the author of the comment.
JiraAsset.Comment.Actor.DisplayNameStringDisplay name of the author of the comment.
JiraAsset.Comment.Actor.NameStringName of the author of the comment.
JiraAsset.Comment.Actor.KeyStringKey of the author of the comment.
JiraAsset.Comment.Actor.RenderedLinkStringA link to the author's Jira profile.
JiraAsset.Comment.Actor.IsDeletedBooleanIs the author of the comment deleted.
JiraAsset.Comment.RoleNumberThe role of the author of the comment.
JiraAsset.Comment.CommentStringThe body of the comment that was newly added.
JiraAsset.Comment.CommentOutputStringThe body of the comment that was newly added.
JiraAsset.Comment.ObjectIdNumberThe ID of the object the new comment was added to.
JiraAsset.Comment.CanEditBooleanWhether the comment is editable.
JiraAsset.Comment.CanDeleteBooleanWhether the comment can be deleted.

jira-asset-connected-ticket-list#


Returns a list of all connected tickets for the specified object.

Base Command#

jira-asset-connected-ticket-list

Input#

Argument NameDescriptionRequired
object_idID of the object for which connected tickets will be fetched.Required

Context Output#

PathTypeDescription
JiraAsset.ConnectedTicket.Tickets.KeyStringKey for the connected ticket.
JiraAsset.ConnectedTicket.Tickets.IDNumberThe ID of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.ReporterStringThe user who reported the connected ticket.
JiraAsset.ConnectedTicket.Tickets.CreatedDateThe date in which this connected ticket was created.
JiraAsset.ConnectedTicket.Tickets.UpdatedDateThe date in which this connected ticket was last updated.
JiraAsset.ConnectedTicket.Tickets.TitleStringTitle of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.Status.NameStringThe name of the status of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.Status.ColornameStringThe color of the connected tikcet.
JiraAsset.ConnectedTicket.Tickets.Type.NameStringThe type of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.Type.DescriptionStringThe description of the type of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.Type.IconurlStringThe URL to the icon representing the type of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.Priority.NameStringPriority of the connected ticket.
JiraAsset.ConnectedTicket.Tickets.Priority.IconurlStringThe URL to the icon representing the priority of the connected ticket.
JiraAsset.ConnectedTicket.AllticketsqueryStringThe query used to fetch the connected tickets.

jira-asset-comment-list#


Returns a list of comments for the specified object.

Base Command#

jira-asset-comment-list

Input#

Argument NameDescriptionRequired
object_idID of the object that comments will be retrieved for. You could use the jira-asset-object-search command to find objects.Required

Context Output#

PathTypeDescription
JiraAsset.Comment.CreatedDateThe date in which this comment was created.
JiraAsset.Comment.UpdatedDateThe date in which this object was last updated.
JiraAsset.Comment.IDNumberThe ID of the newly created comment.
JiraAsset.Comment.RoleNumberThe role of the author of the comment.
JiraAsset.Comment.CommentStringThe body of the comment that was newly added.
JiraAsset.Comment.CommentOutputStringThe body of the comment that was newly added.
JiraAsset.Comment.ObjectIdNumberThe ID of the object the new comment was added to.
JiraAsset.Comment.CanEditBooleanWhether the comment is editable.
JiraAsset.Comment.CanDeleteunknownWhether the comment can be deleted.

jira-asset-attachment-add#


Uploads a file attachment to the specified object.

Base Command#

jira-asset-attachment-add

Input#

Argument NameDescriptionRequired
object_idID of the object that the file will be attached to.Required
entry_idID of the file to upload.Required

Context Output#

PathTypeDescription
JiraAsset.Attachment.IDNumberID of the attachment.
JiraAsset.Attachment.AuthorStringAuthor of the attachment.
JiraAsset.Attachment.MimeTypeStringThe file's MIME type.
JiraAsset.Attachment.FilenameStringThe file's name.
JiraAsset.Attachment.FilesizeStringThe size of the file.
JiraAsset.Attachment.CreatedDateThe date in which this attachment was created.
JiraAsset.Attachment.CommentStringThe comment attached to the attachment, if there is one.
JiraAsset.Attachment.CommentOutputStringThe comment output of the attachment, if there is one.
JiraAsset.Attachment.UrlStringURL to the attachment.

jira-asset-attachment-list#


Returns a list of attachments for the specified object. You can also download the files in a zipped format.

Base Command#

jira-asset-attachment-list

Input#

Argument NameDescriptionRequired
object_idID of the object that attachments will be fetched for.Required
download_fileWhether to download the attachments for this object in a zipped format. Possible values are: true, false.Optional

Context Output#

PathTypeDescription
JiraAsset.Attachment.IDNumberID of the attachment.
JiraAsset.Attachment.AuthorStringAuthor of the attachment.
JiraAsset.Attachment.MimeTypeStringThe file's MIME type.
JiraAsset.Attachment.FilenameStringThe file's name.
JiraAsset.Attachment.FilesizeStringThe size of the file.
JiraAsset.Attachment.CreatedDateThe date in which this attachment was created.
JiraAsset.Attachment.CommentStringThe comment attached to the attachment, if there is one.
JiraAsset.Attachment.CommentOutputStringThe comment output of the attachment, if there is one.
JiraAsset.Attachment.UrlStringURL to the attachment.

jira-asset-attachment-remove#


Removes an attachment from a specific object.

Base Command#

jira-asset-attachment-remove

Input#

Argument NameDescriptionRequired
idID of the attachment that will be deleted.Required

Context Output#

PathTypeDescription
JiraAsset.Attachment.IDNumberID of the attachment that was deleted.
JiraAsset.Attachment.AuthorStringAuthor of the attachment.
JiraAsset.Attachment.MimeTypeStringThe file's MIME type.
JiraAsset.Attachment.FilenameStringThe file's name.
JiraAsset.Attachment.FilesizeStringThe size of the file.
JiraAsset.Attachment.CreatedDateThe date in which this attachment was created.
JiraAsset.Attachment.CommentStringThe comment attached to the attachment, if there is one.
JiraAsset.Attachment.CommentOutputStringThe comment output of the attachment, if there is one.
JiraAsset.Attachment.UrlStringURL to the attachment.