Created
February 19, 2024 16:56
-
-
Save jechlin-adaptavist/cae7dba9e2f0095dcd7d7c7e105c9470 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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