From 3ab52d1fd19499934b9690a3f3211dc858e6b283 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:53:10 +0100 Subject: [PATCH 1/2] jira issue prefix --- .github/workflows/issues.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index b97a3fc21..c9e64c837 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -32,7 +32,7 @@ "project": { "id": "10984" }, - "summary": "HELP: GitHub Issue n. '"${ISSUE_NUMBER}"'", + "summary": "[SDK] HELP: GitHub Issue n. '"${ISSUE_NUMBER}"'", "issuetype": { "id": "12" }, @@ -72,7 +72,7 @@ ISSUE_NUMBER=${{ github.event.issue.number }} JIRA_API_TOKEN=${{ secrets.JIRA_API_TOKEN }} - JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Declined AND text ~ \"HELP: GitHub Issue n. $ISSUE_NUMBER\"" + JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Declined AND text ~ \"[SDK] HELP: GitHub Issue n. $ISSUE_NUMBER\"" # URL encode the query JIRA_URL=$(echo "$JIRA_QUERY" | jq -s -R -r @uri) @@ -122,7 +122,7 @@ ISSUE_NUMBER=${{ github.event.issue.number }} JIRA_API_TOKEN=${{ secrets.JIRA_API_TOKEN }} - JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Unresolved AND text ~ \"HELP: GitHub Issue n. $ISSUE_NUMBER\"" + JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Unresolved AND text ~ \"[SDK] HELP: GitHub Issue n. $ISSUE_NUMBER\"" # URL encode the query JIRA_URL=$(echo "$JIRA_QUERY" | jq -s -R -r @uri) From c6cd1fb4eb11d21855b77d913b26da0eca1f4ca2 Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:39:12 +0100 Subject: [PATCH 2/2] squared brackets can be used in Jira queries --- .github/workflows/issues.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index c9e64c837..8f3afd676 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -32,7 +32,7 @@ "project": { "id": "10984" }, - "summary": "[SDK] HELP: GitHub Issue n. '"${ISSUE_NUMBER}"'", + "summary": "SDK HELP: GitHub Issue n. '"${ISSUE_NUMBER}"'", "issuetype": { "id": "12" }, @@ -72,7 +72,7 @@ ISSUE_NUMBER=${{ github.event.issue.number }} JIRA_API_TOKEN=${{ secrets.JIRA_API_TOKEN }} - JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Declined AND text ~ \"[SDK] HELP: GitHub Issue n. $ISSUE_NUMBER\"" + JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Declined AND text ~ \"SDK HELP: GitHub Issue n. $ISSUE_NUMBER\"" # URL encode the query JIRA_URL=$(echo "$JIRA_QUERY" | jq -s -R -r @uri) @@ -122,7 +122,7 @@ ISSUE_NUMBER=${{ github.event.issue.number }} JIRA_API_TOKEN=${{ secrets.JIRA_API_TOKEN }} - JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Unresolved AND text ~ \"[SDK] HELP: GitHub Issue n. $ISSUE_NUMBER\"" + JIRA_QUERY="project = CLOUDP AND issuetype = Story AND resolution = Unresolved AND text ~ \"SDK HELP: GitHub Issue n. $ISSUE_NUMBER\"" # URL encode the query JIRA_URL=$(echo "$JIRA_QUERY" | jq -s -R -r @uri)