I have integrated JIRA with gitlab and created a rule in JIRA to create issue when build fails.
But when build fails in gitlab issue is not getting created in JIRA automatically.
What should I do to auto create issue?
Hi @Sakura Yamada -- Welcome to the Atlassian Community!
For a question like this, please consider posting an image of your rule and an audit log entry showing an execution which does not behave as you expect. That will provide some context for the community to advise you. Thanks!
Best regards,
Bill
Thanks for replying. I am sharing the images for audit log and for rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Sakura Yamada ,
Can you please provide some more details and show us how you've configured your gitlab integration in Jira?
Also can you show us a screenshot of the failing build that should have triggered this rule?
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shared the screenshots for the Gitlab-JIRA integration. Also shared screenshot for build failure. I kept build name as blank (for all the builds) while creating rule. Also tried this automation for other pipelines but not able to trigger the rule. Please suggest me to solve this issue as soon as possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks - and just to confirm this is a gitlab.com installation (not the server/on-premise version of gitlab) correct?
With the build above, where there actually any issue keys in context? Did the branch or commit message include a valid issue key in Jira?
Automation rules will only trigger if there's an issue in context of the build.
To confirm that's working can you go to the issue you mentioned and show me the development panel there? It should show the related build (that failed).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes this is the gitlab.com installation.
And I am trying to create a issue when the build fails. So how to mention issue key before creating issue?
Can you please tell me the procedure if I am missing something? I have not mentioned issue key anywhere as I am going to create the issue automatically when build fails.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for clarifying that. Yeah so currently this wont work since we only trigger automations if an issue key was mentioned in the commit/branch/build.
If you want to create an issue from scratch, then you'd have to setup a webhooks to do so.
So in Gitlab, configure an outgoing webhook when a build fails (not sure if this is possible) and then setup a rule in Automation like this:
Hope that helps.
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.