Hi everyone how are you all.
I'm making an automation that runs whenever a new item is created.
It checks if the Components field has the values KPMG or GAD, so far so good.
After that, he must add a new value in the Components field and that's my problem, I'm not able to do that. It only gives me the option to edit the field. I need him to enter more value in that field. Is it possible to do that?
For the sake of other users that might come across this, the edit issue action can either set the value to that field or copy from another related issue. The problem here is that it cannot just add a value to that field. However there is a way to achieve this. Using the More options at the bottom of an Edit Issue action to use an advanced json it is possible to do this.
In my example, I had a component with a name of xyz
You will need to make sure that you do not select the component field from the dropdown menu as you cannot set the same field via that menu and json in the same action. The specific example json code used here was:
{
"update": {
"components": [
{
"add": {"name":"xyz"}
}
]
}
}
I hope this helps.
Andy
Hi Rodrigo,
Automation cannot force the user to enter a value. The rule itself can enter a value (i.e. update it) but can't force validation.
Hi @John Funk Thank you very much for your feedback. John what I need is to automatically add the value in the field. For example, if the field has the value KPMG, it will automatically insert the value Audit, so the field will remain KPMG, Audit.
What I've seen in automation is just "updating" the field, so it will always update the field value and not add another one. Would it be possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at this previous post and see if that helps you. You are probably going to have to use the Advanced process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you my friend. I'll look into it and post info if I can.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the sake of other users that might come across this, the edit issue action can either set the value to that field or copy from another related issue. The problem here is that it cannot just add a value to that field. However there is a way to achieve this. Using the More options at the bottom of an Edit Issue action to use an advanced json it is possible to do this.
In my example, I had a component with a name of xyz
You will need to make sure that you do not select the component field from the dropdown menu as you cannot set the same field via that menu and json in the same action. The specific example json code used here was:
{
"update": {
"components": [
{
"add": {"name":"xyz"}
}
]
}
}
I hope this helps.
Andy
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.