I want to leverage Trello Automation to create a pull request on my Bitbucket repo via Bitbucket Rest API.
Given a Trello card which has a number and a name. In Automation, we have corresponding variables: {cardnumber} and {cardname}
I created a rule like this:
post to url:
https://api.bitbucket.org/2.0/repositories/plb-alana/alana/pullrequests
payload (represented as JSON object):
{\n "title": {cardname},\n "source": {\n "branch": {\n "name": "feature/"{cardnumber}"/"{cardname}\n }\n },\n "destination": {\n "branch": {\n "name": "staging"\n }\n }\n}
But looks like the Automation didn't substitute my variables into actual values.
Can I confirm automation variables are working in such use case ?