How to get Jira Card details with SDK 2.0

  • 20 December 2022
  • 2 replies
  • 104 views

Badge +1

I’m trying to get the details (custom fields) of a Jira card but I can’t manage to get any of the custom fields.

 

Jira card:

I tried with the API and JS and both methods are getting the basic information but not the custom fields.

With API: https://api.miro.com/v2/boards/xxxxxxx/cards/345yyyyyyy 

{
"id": "yyyyyy",
"type": "card",
"links": {
"self": "https://api.miro.com/v2/boards/xxxxx/cards/yyyyyy"
},
"parent": {
"links": {
"self": "https://api.miro.com/v2/boards/xxxxx/items/zzzzzz"
},
"id": "zzzzzz"
},
"createdAt": "2022-12-19T13:42:19Z",
"createdBy": {
"id": "uuuuuuuuuuu",
"type": "user"
},
"data": {
"description": "This is the descriptio",
"title": "Test Jira Incident"
},
"geometry": {
"width": 342.323283997474,
"height": 158
},
"modifiedAt": "2022-12-19T14:56:44Z",
"modifiedBy": {
"id": "uuuuuuuuuuuuuuu",
"type": "user"
},
"position": {
"x": 185.64376445455173,
"y": 366.9530191265535,
"origin": "center",
"relativeTo": "parent_top_left"
},
"style": {
"cardTheme": "#99ccff"
}
}

And with JS “await miro.board.get()”: 

 

In the past, with SDK1,1. The method miro.board.widgets.get() seems to be working fine according to another post that I saw in this formum.

Can someone help me? I need to get the custom fields from the Jira card.

Thank you!

 


2 replies

Badge +1

Thank you Will! I really apreciate your support on this.

My guess is that the Jira fields are stored in the card using metadata but I don’t know the name of the keys to retrieve them using card.getMetadata().

There is a way to retrieve all the metadata keys? So I can check…

 

Thanks!

Userlevel 6
Badge +4

Hey @Alfredo Fenoglio,

Thanks for reaching out about this, and you raise a great point.

At the moment, it appears that custom fields for cards generated by the Jira Cards integration are not fully accessible via our Platform. However, I’m working on confirming a few additional pieces in relation to this functionality with some of our internal Engineering teams.

Let me see if this is something that might be accessible via another endpoint, or if there’s another way I can suggest to retrieve these details.

I will follow up with you here as soon as I can get a few more details. Thanks, and I’ll be in touch!

Will

Reply