Skip to content

Workflow needed to create & assign issue #8

@LindsayHill

Description

@LindsayHill

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions