Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

While retrieving an Asset object from an Asset custom field in Jira is possible via the insightFieldValue custom Nunjucks filter, not all attributes of that Asset object can be returned with it. However, the filter does return the Asset object’s URL, and we can leverage Jira Cloud’s Asset API to obtain other attributes of the object.

\uD83D\uDCD8 Instructions

Use the following script:

...

  1. username: your email address used to log in to your Atlassian account

  2. password: the value of an Atlassian API token generated at https://id.atlassian.com/manage-profile/security/api-tokens
    (Note: the token value is only visible immediately after generation)

  3. objectTypeAttributeId: the Asset object’s attribute ID - you can view the ID of the Asset attribute by selecting your Asset object from the list at https://your-jira-cloud-site.atlassian.net/jira/servicedesk/assets and browsing the Attributes section.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@bc3e0baf
sortmodified
showSpacefalse
reversetrue
typepage
labelskb-how-to-article
cqllabel = "kb-how-to-article" and type = "page" and space = "SUPPORT"