Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Assigning Accounts when creating issues with the Jira API

Ian Kenney May 17, 2016

I am trying to use the API to create issues within JIRA (with the TEMPO plugin enables) and I am not clear on how accounts should be specified.  

Account is currently set up as a required field, and when creating issues using the JIRA UI, it is automatically populated from the account associated with the project (we only currently have one account associated with a project).

After some playing around, I have managed to successfully create issues when I switch off validation (i.e. uncheck the options under "Make Tempo Account Custom Field required in JIRA Field Configurations" ), by setting the account field to a string value in the format 

"customfield_10002":"My Account Name (A001)"

Where:

  • "customfield_10002" is the name of the account field
  • "My Account Name" is the name of the account required
  • "A001" is the key of account

However when I switch the validation back on I get an error message 

"errors":{"customfield_10002":"Account is required."}}

when I send exactly the same data.

Can you advise the appropriate way to set the account field when creating issues through the JIRA API

 

thanks 

Ian

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events