-
Notifications
You must be signed in to change notification settings - Fork 39
Description
It is not possible to assign an issue to a user at creation time, using extra_fields with assignee
Instead, a workflow needs to create the issue, then assign it.
Notes from @lakshmi-kannan on original st2contrib issue (StackStorm/st2contrib#480)
Unfortunately, the client library and APIs are not well thought out. There is another method you have to call if you want to assign the issue. https://github.com/pycontribs/jira/blob/develop/jira/client.py#L923, It looks like there are two APIs - 1. Create issue - https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-create-issue 2. Assign issue via create meta API - https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials/jira-rest-api-example-edit-issues
They can be combined into a single action or a workflow.