I'm trying to create a Jira issue when a step fails in a Bitbucket pipeline. I use the "Jira Create Issue" pipe version 0.8.1. For the $JIRA_API_TOKEN, I generated an API token from https://id.atlassian.com/manage-profile/security/api-tokens for Jira with scope "write:jira-work". And used it in the step. But "Jira Create Issue" step is failing with the following error.
✖ Failed to initialize a Jira client for https://<company>.atlassian.net
ERROR: You are not authenticated. Authentication required to perform this operation.
Any idea how I can fix this?