Hi Atlassian,
I want to use an internal Jira form to trigger certain actions using automation without adding a bunch of custom fields to the request type.
Current Scenario:
A request is submitted via the portal
A person reviews the ticket internally to prioritize and sets the priority field manually
When it comes to step 2 I want to use a Form to select radio buttons for Effort, Impact, and Deadline and based on the selected values automatically give the ticket a priority value from a drop-down list.
E.g. if Effort is High, Impact is High and Deadline is long set the CAP Matrix field to A2.
I know how I could do it if each Form field would be linked to a Jira field, but I don't want to add several Jira fields to each request type and was hoping to accomplish this using the selected values in the submitted form fields instead.
This example is for a quite short form but we want to use the same logic for forms that are longer.
I tried to create an automation using smart values based on the key set in the form field, but I'm not sure if this is the correct approach.
That would be nice, and theoretically yes.
I do think it required to enable the save as PDF option, and you might need to do a re-fetch before the IF/ELSE
See if this makes a difference.
Thanks @Marc - Devoteam
The automation "technically works" it changes the CAP Matrix field when I submit the form, but it always stops/accepts at the first IF condition and sets it to A1 no matter what I select in the form.
I tried adding a re-fetch, but that didn't change anything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you need to create 3 variables, based on the input of Effort, Impact and Deadline.
Then base the if/else options on the values stored in the variables and the options you can choose.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To be honest, I haven't used variables in my rules before, so this is new to me.
But the audit log says "The following issues did not match the condition:" for all of them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Add a log action after the creation of the variable and log the variable, what does the log action provide as result?
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.
Yes and there is no result in the variable.
So looking back on your form, your radio button option is called Effort, so the smart clause used when creating the variable should be:
{{forms.last.Effort.label}}
Do you get result at the log action?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No sorry no Log for that either.
Since I put in a "Field key" in the form I was under the impression that I should use that.
But I tried both {{forms.last.Effort.label}} and {{forms.last.cap_effort.label}} before and after removing the "Field key" and saving the form.
I also tried a different "Field key" capeffort without the under score (_) but that did not help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry to bother you, do you have any other suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry to bother you, do you have any other suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I figured it out.
In the rule the action Attach Form is required and you indeed need to set Field key, to retrieve the set information. (Field key is capital sensitive)
See my simple example:
I made a form with the field "Urgency" and Field key "urgency".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you, that is strange because it's not working for me.
Do I need to report this as an issue somehow?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry the 3rd and 4th image is in the wrong order.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On the form config I see you didn't add the from to a request type, this is required otherwise the form is not used on a request type.
Steps are simple
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that is correct I don't add it to the Request Type, because if I do the form is shown to the portal and we don't want our Reporters to see or fill out this form, it's for internal use only.
However, I found this article and tried to replicate the 1st example by creating a new form and a new rule (again) to make a simple comment on the ticket, and for some reason that worked.
So I started adding radio buttons, checkboxes, drop-down, and when that worked I tried adding the IF condition, and now that also works, even though the logic is practically the same as before.
And just as a note:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As a summary for future readers.
Technically I never figured out the issue with the first form and automation I made and why it didn't collect the values from the Jira form.
Important note: You have to set the "Field key" to use the smart value {{forms.last.capdev-effort.label}} in the automation.
Resources:
Thank you @Marc - Devoteam and @John Funk for the support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
I would say yes, if you used an automation rule to use those fields to do the action, based on a Form Submitted trigger. See this article for guidance on this new functionality for using Form fields in Automation rules.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @joh , the linked page Access smart values for forms and form fields in the announcement is what I have been using but I haven't been able to figure out which smart value to put in to an IF/ELSE condition to identify for example:
I was trying to use {{form.last.cap_effort.High}} to identify High as the selected value in the Form field, but it doesn't seem to work.
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.
I just did something similar and used the {{smart values}} condition. The first value in your case would look like {{forms.last.Effort.label}}
Condition is: equals
Second value is High
Then put your action for Edit issue under that and set the CAP Matrix field to A1
Then put in another {{smart values}} condition for Low and set the field to B1
You might want to post your whole rule here though for help if that doesn't work as you would like.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried this (see image) as this is how I understood your message above and the log says "The following issues did not match the condition:" for both blocks.
So somehow it doesn't recognize the values that I select in the form.
And this is the whole rule.
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.
I also tried the smart value {{form.last.Effort.label}}, both with the "Field key" field in the form set to blank or Effort and the log still says "The following issues did not match the condition:" for both blocks.
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.
A possible workaround that works:
I tried linking the Effort form field to a (similar) Jira field called "Level of effort" (that I don't have on the issue screen or in the request type).
This way I could accomplish what I wanted with the form without adding any custom Jira fields to the issue screen/request type, the values are logged in the background.
But it does require 1 custom Jira field per Form field, which I'm trying to avoid.
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.