I have created a rule to take the attachment image from the parent (Epic) and attach it to the story so that I can have that image on the cover card, however, it doesn't seem to recognize the automation rule has attached an image. Image below shows:
If I attach this manually, it works.
Short answer: it seems cover images can only be set by some code in the UX; they cannot be set with automation rules or the REST API.
I experimented a bit and this is not a permissions issue (for the rule) or a problem with the attachment not copying correctly. It seems the board's user experience (UX) code sets some attribute for the current, first manually-added attachment to be the one used for the cover image.
An experiment I did to confirm this behavior: with a rule to copy the attachment from a parent issue (as you did), the cover image did not display. Then I manually added another image attachment to the new issue and the cover image appeared with the second attachment.
In the developer community, I found a post indicating there is no REST API support for detecting / setting the cover image: https://community.developer.atlassian.com/t/is-there-a-jira-api-call-that-will-tell-me-if-a-cover-image-is-assigned-to-an-issue/51850
Kind regards,
Bill
Thanks for checking Bill! I assumed this would be the case but I'm by no means an expert in this area so on the off chance that someone had a solution; I thought I'd post it up. Thanks for responding so quickly too!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.