We are trying to integrate CircleCI with Jira Deployments. We run the following command in our .circleci/config.yml file:
- jira/notify:
environment: << parameters.environment >>
job_type: deployment
token_name: CIRCLE_TOKEN_FOR_JIRA
And get the error:
200:https://********.com/api/v2/me?circle-token=**************************************** "xxx" 200:https://********.com/api/v1.1/project/bitbucket/xxx/xxx/415 200:https://********.com/api/v2/workflow/xxx This job is passing, however another job in workflow is running Update Jira with status: successful for 174 Results from Jira: ERROR: unknown association { "acceptedDeployments": [ { "pipelineId": "xxx", "environmentId": "xxx-dev", "deploymentSequenceNumber": 174 } ], "rejectedDeployments": [], "unknownIssueKeys": [], "unknownAssociations": [ { "associationType": "serviceIdOrKeys", "values": [ "" ] } ] }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try to provide a valid `issue key` or `service id` to `associations` (In most cases, you would want to use issue key), which will be the only bridge between circleCI and Jira. You provided empty string as association.
This association is used to associate deployment information with issues. If you send deployment with invalid association to Jira, Jira wouldn't know where to use this information. That's why with invalid association value, Jira can't know what to do with it.
Thank you.
MJ Kim
DevOps team, Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm getting the same error. Reading the orb details it should error:
echo "No Jira issue keys found in commit subjects or branch name, skipping."
but it doesn't.
It successfully calls Jira with an empty key.
Is there some way to get the key from the GITHUB PR title/body? I don't like the idea of having to force developers to tag commit or branch name as well as PR .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello folks,
Could anyone experiencing this issue provide more information about their usage?
The Issue ID must be located in either the branch name or the commit message (subject). We are looking into feedback there may be an edge-case related to tagged commits that experience this issue.
We have just tested the integration and did not replicate the issue. This has us thinking the issue may be around a bad regex pattern for the issue IDs or possibly the issue IDs not being picked up for another reason we are hoping to discover.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, for my case at least it was because we're pushing up a tag to circle, which is apparently a known issue:
https://discuss.circleci.com/t/git-commit-differences-when-pushing-a-commit-vs-a-tag/39037
They link the following:
https://github.com/CircleCI-Public/jira-connect-orb/issues/58
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can the requirement for the issue id being in the commit header be relaxed? As much as I'd like to use this functionality I don't want my commit history reading like a list of JIRAs. It isn't as useful as why the commit was made. JIRA issue ids are always just metadata on a commit...not why a commit was made which needs to read like a sentence (e.g. This commit will <start of actual commit message>)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.