You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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}} ] }
}
I'm glad you got it working!
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.