Hello,
Is there an option to automatically assign a label to the pull request when it is created?
Example:
I have a ticket(Jiras' issue) with "Priority: Medium".
I start working on the ticket, create a Pull Request (no issue on github, just a Jira ticket + Pull request) that is linked to the issue.
Is there an automation rule that will assign a label with "priority: medium" to the pull request?
I did not find any template to do that.
Hi @Nikodem Macuk -- Welcome to the Atlassian Community!
I do not believe there is anything built-in to modify the PR that way from an automation rule.
Instead have you tried calling the Github REST API from the rule, using a send web request action, to add the label?
Kind regards,
Bill
Hey!
No I did not, I first wanted to make sure that I'm not gonna do something that is maybe already built in. :D
Thanks for the suggestion. Will definitely take a look!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And...here is an article on calling a REST API function from a rule to help:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just following up to check if this answered your question. If so, please consider marking this one as "answered". That will help others with a similar need find solutions faster. If not, please let the community know what help you need with the rule changes.
Thanks!
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.