Hello guys, I would like to know how to remove a component from the Jira automation, I tried the documentation, but it was not clear for me. I know that would be from a JSON, but didnt work for me.
The code would be, every time a trigger happens, remove the component 'abc'.
Thank you @Kian Stack Mumo Systems , I looked through 18 pages, and didn't see this one.
The second solution was missing some information (The variable {{compsCsv}} converts {{comps}} variable with CSV delimited by string quotation (")), but I got the necessary knowledge to do the automation.
I thought there was something simpler, similar to what is presented in the documentation:
"components": { "required": false, "schema": { "type": "array", "items": "component", "system": "components" }, "name": "Component/s", "hasDefaultValue": false, "operations": [ "add", "set", "remove" ]
Anyway, it works. Thank you very much!!
My solution:
Strutucture:
Solution:
{
"fields": { "components" : [ {{updatedIssueComponents}} ] }
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should check out this page - it looks like @Bill Sheboy answered a very similar question in some great level of detail, so full credit to him for that!
If you do run into trouble with the implementation, I'd be happy to help troubleshoot your issues.
Thanks,
Kian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
here is the most easy way to do it:
In JSON format in a modify issue use this syntax:
{
"update": {
"components": [{
"remove": {"name": "Component_Name_To_Remove"}
}]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.