Giter Site home page Giter Site logo

Comments (2)

ctreminiom avatar ctreminiom commented on July 2, 2024

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": map[string]interface{}{
		"name": "Version 101",
	},
},

{
	"add": map[string]interface{}{
		"name": "Version 301",
	},
},
}
)

Before the execution

image

After the execution

image

image

Finally, can you please test the new method from your side and confirm the correct behavior?, just go get with the commit hash:

go get github.com/ctreminiom/go-atlassian@8d27166c4ebb9a10f725dd022107fc3aae7fb008

Pura vida 🏄

from go-atlassian.

stephanwesten avatar stephanwesten commented on July 2, 2024

Thanks for your support. Honestly, I do not know if i’ve the time to test it. I implemented a solution with just a plain http call that works fine and moved on. It is not nice, but i rather be open about it. Hopefully other people will benefit from your work. Thank you.

from go-atlassian.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.