Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Copy votes from Trello to custom field in Jira

Katarzyna
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 2, 2021

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

1 answer

1 accepted

0 votes
Answer accepted
David Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2021

Hello @Katarzyna 

It's not quite clear if you are asking:

  1. How to create a custom field in Jira. If so, refer to this Jira Create a custom field document.
  2. How to transfer the value of the voting field in Trello to a custom field in Jira

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.

Katarzyna
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
August 6, 2021

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events