Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jechlin-adaptavist/cae7dba9e2f0095dcd7d7c7e105c9470 to your computer and use it in GitHub Desktop.
Save jechlin-adaptavist/cae7dba9e2f0095dcd7d7c7e105c9470 to your computer and use it in GitHub Desktop.
// check the project key here is the same as the project key in the sync script
// and check the custom field ID is that of your assets custom field. Single picker is assumed
let assetsIdMap = new Project("JRA").properties.KVP_List;
issue.attachments.some(attachment =>
issue.customfield_10312.length ?
attachment.filename == assetsIdMap[issue.customfield_10312[0].objectId] + '.png' :
false
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment