Hi, @lbermejo,
Custom fields may indeed have different IDs on every instance, this is expected.
There is the Get fields endpoint, which gives you information about all fields on a Jira instance. You would need to first call it and map IDs to field types.
For example, the sprint field the entry will look like this:
{
"id": "customfield_10880",
"key": "customfield_10880",
"name": "Sprint",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"cf[10880]",
"Sprint"
],
"schema": {
"type": "array",
"items": "string",
"custom": "com.pyxis.greenhopper.jira:gh-sprint",
"customId": 10880
}
}
As you can see, “schema” tells you that the type of the field is “com.pyxis.greenhopper.jira:gh-sprint”, which is the Sprint field custom field (this string will be the same on every instance).
Hope this helps.
Cheers
Krzysztof