Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to show and hide forms via automations?

Ross D Webster-Salter
Contributor
March 19, 2023

Hi Everyone,

I am currently looking for a way to show and hide forms in JSM. The workflow looks at the inputs of an earlier form on submission, does some look ups on relevant assets then adds another relevant form based on that look up result.

Is it possible to "hide" (make visible to "internal team" only) the first input form via automation and get the new form into an"edit" mode in the customer portal (like when fill on a form when you raise a new request).

Currently, the user having to go up, manually open "form 2" and click the blue "edit" button does not feel the most intuitive from a user experience perspective. 

 

// Edit 03.19

Added more detail due to replies below to help specify the problem.

 

  1. User Submits a "Part 1" form, it is attached to new requests of this type.
    (Implemented OK)
  2. Based on this "automations" lookup a value in the assets database.
    (Implemented OK)
  3. Based on this value the ticket is "resolved" or another "part 2" form with additional information is attached
    (Implemented OK)
  4. PROBLEM STARTS - Change visibility of the "part 1" form "external" to "internal"

 

Why?

I want to simplify the user interface, currently when you make a new request based on form input It leaves the form you just submitted in a state where it is visible. You have to manually click the newly generated "part 2" form title, and then click the blue "edit" button again. This is really not intuitive for users who are not familiar with JSM (and given this is the customer portal side, most of our users are not). 

 

1 answer

0 votes
Pankaj Jangid
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2023

Yes, it is possible to show and hide forms in Jira Service Management using automations. You can use automation rules to trigger actions based on certain conditions, such as the submission of a form.

To achieve what you're looking for, you could create an automation rule that triggers when the first form is submitted. The rule would then look up relevant assets and determine whether the second form should be shown or hidden.

If the second form should be shown, the automation rule can update the request to include the second form and set its status to "Open". If the second form should be hidden, the automation rule can update the request to remove the first form and set the second form's status to "Internal".

Regarding making the first form visible to "internal team" only, you can restrict the visibility of the first form by configuring the form's permissions. By default, the form will be visible to all users, but you can change this so that only certain groups or roles can see it.

As for getting the second form into an "edit" mode in the customer portal, you can create a link or button on the request view page that takes the user directly to the second form in edit mode. This can be done using a Jira URL that includes the request and form IDs.

Ross D Webster-Salter
Contributor
March 19, 2023

Hi Pankaj,

Thanks for the quick response.

I will explain in more detail, as I think you may have understood my request slightly differently. So I have tried to break it down in more detail below. 

 

  1. User Submits a "Part 1" form, it is attached to new requests of this type. 
    (Implemented OK)
  2. Based on this "automations" lookup a value in the assets database.
    (Implemented OK)
  3. Based on this value the ticket is "resolved" or another "part 2" form with additional information is attached
    (Implemented OK)
  4. PROBLEM STARTS - Change visibility of the "part 1" form "external" to "internal"

 

Why?

I want to simplify the user interface, currently when you make a new request based on form input It leaves the form you just submitted in a state where it is visible. You have to manually click the newly opened form, and then click the blue "edit" button again. This is really not intuitive for users who are not familiar with JSM (and given this is the customer portal side, most of our users are not). 

 

If i misunderstood some of your messages, can you share with me some screenshots of how I could implement step 4 above (the rest is ok).

Pankaj Jangid
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2023

Thank you for providing more details. Based on your clarification, I understand that you want to change the visibility of the "Part 1" form from "external" to "internal" after the "Part 2" form is attached to the request.

To achieve this, you can create an automation rule that triggers when the "Part 2" form is attached to the request. The rule would then update the request to change the visibility of the "Part 1" form from "external" to "internal".

Here are the steps to configure this automation rule:

  1. Go to your JSM project and click on "Project settings" in the bottom left corner.
  2. Click on "Automation" under the "Automation" section.
  3. Click on "Create rule" and give the rule a name.
  4. Under the "When" section, select "Issue updated".
  5. Under the "If" section, click on "Add condition" and select "Form field value".
  6. Select the "Part 2" form and the relevant field that determines whether the form should be shown or hidden.
  7. Under the "Then" section, click on "Add action" and select "Edit issue".
  8. Under the "Fields" section, select the "Part 1" form and change its visibility to "Internal".
  9. Save the automation rule.

Regarding the "edit" mode in the customer portal, you can provide a direct link to the "Part 2" form in the request confirmation message or in an email notification sent to the user after the "Part 1" form is submitted. The link should include the request and form IDs and take the user directly to the "Part 2" form in edit mode.

Ross D Webster-Salter
Contributor
March 21, 2023

Hi Pankaj,

Thanks again for the quick reply. I'm struggling a bit from the 7th step, would you be able to provide some screens of how to implement 7 to 9 (I see my fields, but cannot see how this relates to the visibility of my form). Specifically, how to make an already completed form internal.


Best,

Ross

Like Christian Schneider likes this
Christian Schneider
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2023

Same for me: how do I change the state of a form from within an automation?

I can log the state value with:

{{issue.properties."proforma.forms.i1".state.status}}

 

It seems as if I connot change this value with an automation...

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events