Trying to create an automation that checks to see if a checkbox has been checked on a form. If so, then it spawns another separate ticket.
Can this be done using Field Keys and a smart value condition in automations without having to create a custom field for that checkbox?
ie, If checkbox value equals "yes" from "ABC Form" then perform action.
Hi @Jared Grywacheski , great question!
Atlassian actually announced in November 2024 that form fields are now available via smart values in JSM without needing custom fields tied to them.
We've used these a bunch since then, so I'm happy to help. They are a little tricky to figure out even reading through the announcement and the support docs, but here's essentially what you'll want to do.
All in all, it would like something like the below. I've tested this on my end and it works. Of course for your case, you can create subtasks as the action.
On the form editor:
On the automation:
I did even see this and its super helpful for us that live in forms but didn't see this annoucement this will make life easier when we can't create a custom field. @Harrison Ponce Great share and work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Harrison Ponce Amazing! that worked, I almost had I was just missing the "label" at the end. Thank you!
Maybe you can help with this part as well - with the Automation if the checkbox is checked (ie value equals Yes) it creates a new ticket. Then in the automation I am trying to edit the request type, attach a form, and link that issues. I have it setup as you see in the screenshot, but those steps after the "Create new" step are being applied to the original ticket not the new ticket I'm trying to create. Is there a way to nest those steps into the "Create new" ?
Hope that makes sense
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad that's working well!
It is true that automation actions by default apply to the trigger issue, even after a "create issue" action.
For any actions to issues created as a result of a different trigger issue, you'll want to add a For each branch, choose Branch rule / related issues and select All created issues for the type of related issue. Then place your actions under that branch.
This support page talks a little more about the branching.
Definitely give that a try and let me know what you think!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Again, amazing. Thanks, I'm fairly new to automations but I now have this all working as expected. Much appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Woohoo!! I'm so glad. It is a little daunting at first, but we're all here to support each other. You'll be a pro in no time!! Happy automating! :-)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jared Grywacheski
From my experience you need to have a Jira field linked to the Form field if these two functions are needed.
If you need to do either of those you would need a linked Jira field. The only other part of this that would work if the data from the field was being added via API which I believe needes to use the field keys data.
I think you will need to create a Jira field for this situation.
Hope this helps
Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Form fields are now available in automation as smart values without needing a linked Jira custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is hard to keep up with all changes thanks for the information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, this is possible.
1. Make sure you link the form field to a custom check box field. form fields cannot be used in automation.
2. the automation will run once the ticket has been created not when you select that field in the form.
3. the automation can be:
when value changes: checkbox
value added -> you will need to play with this. anytime you edit that checkbox a ne issue will be created. you can use this to check if a certain value is selected
all issue operations
then create new issue
select project and issue type
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can now use form fields in automation as smart values, even without a linked Jira custom field.
Check out the announcement and support docs for more details!
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.