Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue value not found #13

Open
andrea-avanzi opened this issue Mar 2, 2021 · 0 comments
Open

Issue value not found #13

andrea-avanzi opened this issue Mar 2, 2021 · 0 comments

Comments

@andrea-avanzi
Copy link

Hi, I trying to use this action.
Here my setup

     - name: Login
        uses: atlassian/gajira-login@master
        env:
          JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
          JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
          JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}

      - name: Find in commit messages
        uses: atlassian/gajira-find-issue-key@master
        with:
          string: ${{ github.event.ref }}
     
     - name: Comment on issue
        uses: atlassian/[email protected]
        with:
          comment: mycomment

"Find in commit messages" works well, here job's log

Run atlassian/gajira-find-issue-key@master
Searching in string: 
 refs/heads/feat/LEAR-9/action
Detected issueKey: LEAR-9
Saving LEAR-9 to /home/runner/.jira.d/config.yml
Saving LEAR-9 to /home/runner/jira/config.yml

But on "Comment on issue" there is this error

Error: Jira API error
    at Jira.fetch (/home/runner/work/_actions/atlassian/gajira-comment/v2.0.2/dist/index.js:1:63248)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  req: {
    method: 'POST',
    body: '{"body":"mycomment"}',
    url: '***/rest/api/2/issue//comment'

seems that url is malformed because missing issue-id

andreava added a commit to andreava/gajira-comment that referenced this issue Mar 2, 2021
With this fix i can use config.issue from previous step if issue parameter is not set
atlassian#13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant