JIRA integration failing at notify command

I’m trying to use the circleci/jira orb in a project and we keep getting the following error during the -jira/notify post-step:

Attempt to get Jira Issues from  https://circleci.com/api/v1.1/project/github/...
jq: error (at <stdin>:2): Cannot iterate over null (null)
Exited with code 5

The JIRA integration in the settings seems to work, the CIRCLE_TOKEN environment variable has been set properly and the https://circleci.com/api/v1.1/project/github/… call does seem to yield parsible JSON with correctly formatted issue codes. The relevant config.yml info is set up like this:

version: 2.1

  jira: circleci/jira@1.0.5

  version: 2
      - build:
            - jira/notify

Does anyone know what might be causing this?

I’ve seen very similar issue:

Attempt to get Jira Issues from  https://circleci.com/api/v1.1/project/github/myproj/pyrepo/101
jq: error (at <stdin>:476): null (null) cannot be matched, as it is not a string
Exited with code 5

Manually using above url seems to work.

No updates here. I’m experiencing the same issue with orb 1.0.6

I’ve also setup the environment variables; and the link works when opened manually in an authenticated window; or when appending ?circle-token=… in CURL or an incognito window.

Should the API token be for all build information; instead of status only?

It looks like the API token needs to be set for ALL (not just status, or artifacts)

Or at least this is what worked for me.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.