I'm trying to create an issue from the api rest but I have problems with the tempo account field.
How should I send this field? How do I obtain in real time the values I must send for each of the possible options?
Error when send an field value ID:
{"errorMessages":["Option cannot be selected, it has been locked from assigning to issues"],"errors":{}}
Error when send the key for the value:
{"errorMessages":[],"errors":{"io.tempo.jira__account":"Can not construct instance of java.lang.Long from String value 'FAMA': not a valid Long value\n at [Source: N/A; line: -1, column: -1]"}}
Regards
I think I found the solution through Jira Support.
To obtain the values I need about the account field we must use a GET to this URL
https://topsystems.atlassian.net/rest/api/2/field/io.tempo.jira__account/option/
Hello,
You should use Tempo Rest Api to set the account field:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks.
That way I have it implemented and it does not work anymore, because the Tempo API changed and they no longer return the ID for the Account objects that I need to send to the Jira Rest API to create the issue.
This is the documentation that Im following now: https://tempo-io.github.io/tempo-api-docs/#accounts
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What exactly does not work?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As I understand to create an issue through the jira api I need to send in the field ACCOUNT an ID number.
However, when I try to get the values of the count field from the Tempo api it returns all the data but not the ID number
Then if I try to send the value key to jira's api it fails as I showed before:
Can not construct instance of java.lang.Long from String value 'FAMA'
The other problem is that if I also send a valid value hardcoded it is giving me as it is blocked
"Option cannot be selected, it has been locked from assigning to issues"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.