-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
Problem
The Jira plugin for git-phlow fails assigning me to any issue for JIRA when i run git-phlow workon issueno.
Example:
andreas@andreas-Lenovo-ThinkBook-13s-IWL:~/Documents/oticon/GitOpsExperiment$ git workon TEST-14
Preparing workspace...
-------- Issue #TEST-14--------
Moved to => In Progress
Assingee '@[email protected]' could not be assigned to issue #TEST-14
Created workspace: TEST-14-test Reference to user by Name(email) is deprecated!
Git-phlow plugin for Jira (assignIssue) need to be rewritten so it works with the new API
The problem occurs from using Email as reference for the user. In Jira you need to assign a user to an issue by accountId and not by email
Documented here in JIRA API
Specifically here in line 198 https://github.com/Praqma/git-phlow/blob/fec9d58804e175062d4bf12bfa496e00ffe425d1/plugins/jira.go#L198
Git-phlow is sending the input-data formatted as
{"name":"[email protected]" } where it should be
{"accountId":"xasda--238axj2.-asxo"}