Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

Jira extra_fields does not seem to allow the assignee field #480

Closed
jennyfountain opened this issue Apr 20, 2016 · 4 comments
Closed

Jira extra_fields does not seem to allow the assignee field #480

jennyfountain opened this issue Apr 20, 2016 · 4 comments

Comments

@jennyfountain
Copy link

jennyfountain commented Apr 20, 2016

I added the assignee field and it still created the ticket unassigned.

Here is what I added to the extra_fields:

{
"assignee": {
"name": "jfountain"
}
}

@jennyfountain jennyfountain changed the title Does the jira pack extra_fields allow the assignee field? Jira extra_fields does not seem to allow the assignee field Apr 21, 2016
@jennyfountain
Copy link
Author

Am I doing something wrong?

@lakshmi-kannan
Copy link
Contributor

@jennyfountain I replied on slack but here it is anyways -

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
Now, they can be combined into a single action or a workflow. Do you want to take a stab at fixing it?

@jennyfountain
Copy link
Author

Yeah! I will work on it! Thank you!

@LindsayHill
Copy link
Contributor

Track here: StackStorm-Exchange/stackstorm-jira#8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants