The documentation for the POST /rest/api/2/issue endpoint (Create issue) specifies that you can pass issue entity properties in the “properties” attribute of the body. Whenever I try that, I get this error: Incorrect request: ["N/A (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"properties\"])"]
@ernst.stefan Because by the time you get the answer back from the Create call with the new issue key, post functions located on the Create transition are already triggered. This is normally not a problem because we delay the execution of post-functions residing on the Create transition. However, if the Jira instance is overloaded and starts returning errors (such as 429) from the property set endpoint, we do retries which delays setting the entity property past the post-function execution delay.
We need to set the issue entity property in the same “transaction” as the issue creation.