I have tried logging into JIRA using gajira-login, using below workflow;
- name: Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: https://orgname.atlassian.net
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
It failed logging in, with 'unauthorized' error in the workflow logs.
Retried, after updating the base URL as;
- name: Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: https://orgname.atlassian.net/browse/projecttitle
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
This time, there are no errors while logged in.
Challenge I experience is comments are not added to Jira ticket after above login i.e. using JIRA_BASE_URL: https://orgname.atlassian.net/browse/projecttitle
Seems login doesn't work as expected when a JIRA account/credential uses SSO .
Please advice a way to login SSO managed JIRA account, in Github Actions workflow