Skip to content

Question on adding fixVersions #265

Answered by ctreminiom
stephanwesten asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @stephanwesten,

I appreciate your contribution to this open-source project! However, I apologies for the delayed response due I'm in the middle of a job change and my time's a bit tight.

Regarding your question, you're right, the AddArrayOperation() can't handle the multi-picker customfields like the versions, multi-groups, multi-users, etc.

I just created a new method called AddMultiRawOperation() that can handle the fixVersions and any multipicker customfield, the format is the following:

var operations = &models.UpdateOperations{}
operations.AddMultiRawOperation("fixVersions", []map[string]interface{}{

{
	"remove": map[string]interface{}{
		"name": "Version 00",
	},
},

{
	"remove": 

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ctreminiom
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request Jira Software Cloud V2 Jira Cloud V2 V3 Jira Cloud V3
2 participants
Converted from issue

This discussion was converted from issue #255 on June 16, 2024 05:06.