Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×Hi 👋
I have a public roadmap published as a board in Trello. The voting option in Trello is enabled.
All requirements are created as issues in Jira cloud and linked to the specific cards in Trello. I would like to create a custom field which presents the number of votes from Trello card.
Do you know how to achieve it? Any automation rule?
At least, presenting a preview of Trello card on the issue. Is it possible?
Kate
Hello @Katarzyna
It's not quite clear if you are asking:
If it's the second question, assuming you're using the default Trello Voting Power-up and you have a custom field in Jira, presumably a number field called something like 'Votes', to receive the data, it's going to be hard to transfer the data over, since the value of the Trello card's voting field is something you're going to have to lookup via the REST API.
If you query the get a card endpoint of the Trello REST API for a specific card, in the response data, in the badges section, you will find a value votes that contains the number you're looking for:
"badges": {
"attachmentsByType": {
"trello": {
"board":0,"card":0
}
},
"location":false,
"votes":1,
"viewingMemberVoted":true,
"subscribed":false,
"fogbugz":"",
"checkItems":0,
"checkItemsChecked":0,
"checkItemsEarliestDue":null,
"comments":0,
"attachments":0,
"description":true,
"due":null,
"dueComplete":false,
"start":null
}
You will need to extract that piece of data, then send it over to Jira via the Jira REST API to the corresponding field of the required issue.
Hey @David Bakkers ,
Thank you for your answer! We'll use this API to get info about voting and put it into custom field in Jira.
Kate
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.