Error : ERROR Invalid Usage: Post "rest/api/2/search": unsupported protocol scheme ""

Kruthika Hariharan December 7, 2022

Dear Team,



I am trying to create a github action workflow using atlassian/gajira-cli@v3. I am trying to list tickets with a specific summary, for which I am using this 

name: Test-JIRA

on : [workflow_dispatch]  

jobs: Jira-check: 

runs-on: ubuntu-latest

steps: 

- name: setup 

uses: atlassian/gajira-cli@v3 

with: version: 1.0.27  

 - name: Check ticket does not already exist 

id: find 

env: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} 

JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} 

JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} 

run: jira list --query "resolution=unresolved AND issuetype=Task AND summary~'${{ github.event.pull_request.title }}' AND project=ABC" --queryfields=issuetype,summary,priority,assignee,status,created,reporter,summary

However, I am getting this error ERROR Invalid Usage: Post "rest/api/2/search": unsupported protocol scheme ""Kindly help on this

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 7, 2022

Welcome to the Atlassian Community!

That looks like gajira-cli is not including the base URL of the target Jira system in its REST calls.  Have you configured it with the right base URL?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events