Hi,
I see that there are a bunch of smart values I can use for automations connecting Github to Jira, is there a way I can get the target branch of a pull request? There is the action on merge, but I would only like to do certain actions on merge to certain branches.
Thanks a lot.
I just wanted to write an answer here to anyone who might stumble over this thread in search for the same answers I was.
It is actually not that difficult, but you can't use the standard Jira features when it comes to the "development" integration. You have to use an incoming webhook, and point your Github webhook settings towards the Jira endpoint, configuring it to notify Jira of any activities on pull requests. In the body of the pull request you have all the information you need, so base and target branches, PR titles etc.
I hope this helps anyone else searching for answers on this topic. But it can definitely be done, just not directly out of the box.
Hi @André Valentin -- Welcome to the Atlassian community!
According to a response from Atlassian staff on this community post in June 2020, there is no support yet for target branch in the smart values:
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Bill,
Thanks for dropping by and welcoming me to the community.
I did figure out the solution to the answer, and posted it in case anyone else wants to use this in the future.
Regards,
André
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am glad that you figured it out, and thanks for posting the solution to help the community!
__Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.