Skip to content

Fix broken issue assigning for Jira - deprecated input-data #314

@astyltsvig

Description

@astyltsvig

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 image

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"}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions