andygrunwald / andygrunwald/go-jira

How do I handle a custom field that is an object instead of a simple string?

Abierto
#608 9 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Go
Estrellas
1.6k
Forks
500
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

They're constantly adding custom fields to JIRA where I work. One of the latest requires a full object rather than a simple string, as the data. It represents a drop-down field with fixed selections.

Here's what the JSON looks like:
```json
"customfield_17100": {
"disabled": false,
"id": "15700",
"self": "https://someserver.com/rest/api/2/customFieldOption/15700",
"value": "Some text value"
},
```
Setting a regular customfield doesn't work, since it only allows strings for the values, not objects. If the JSON is pass _as_ a string, it doesn't count as a object.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.