Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,696
Community Members
 
Community Events
165
Community Groups

Copy votes from Trello to custom field in Jira

Katarzyna Marketplace Partner Aug 02, 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

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 Aug 06, 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
Community showcase
Posted in Trello

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,304 views 28 40
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you