Forums

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

In the issue collector widget, can we prepopulate some fields and make them read-only?

Jessica Ordoyne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2022

We are implementing a "submit ticket" system in our application. We are looking at using the issue collector widget to allow end users to create tickets, but if there is a better way to accomplish what I'm describing below, we are definitely open to suggestion.

What we'd like to do is have a few custom fields in the template to automatically collect certain information about the user's environment. We have figured out how to populate the fields, but we also need to make them "read-only" for the end user. Is this possible with the issue collector? If not, what is another approach we can take?

1 answer

0 votes
Dave Mathijs
Community Champion
April 26, 2022

Hi @Jessica Ordoyne welcome to the Atlassian Community!

When configuring the Template of the 'Issue Collector Form', you can set a default value but it won't be added to the form as the default value is already set and cannot be changed by the customer.

The following custom field types can be used: Date Time, Radio Buttons, Multi-Checkbox, Multi-Select, Number, Select List, URL field, Version Picker, Cascading Select, Project Picker, Single Version Picker, Text Field, Free Text Field

Other fields cannot be displayed to anonymous users.

Jessica Ordoyne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 26, 2022

Hi Dave, thanks for the response and the welcome!

I appreciate the info, but that's not quite what we're trying to accomplish. We don't want the fields to get populated until the user starts to create the ticket. These values will be different for each ticket created. We want our application to populate the fields and then display them to the user, without the user being able to change them.

Here's our intended workflow if this helps clarify:

  1. The user is logged into our application
  2. The user clicks "create ticket"
  3. In the background, information about the user and their session (such as username, organization, current page) is collected. This info is loaded into corresponding fields in the issue collector form.
  4. The user is presented with a modal containing the widget for the issue collector. They can see the fields containing the info collected in step 3, but they cannot edit those fields. Other fields like summary, description, etc are presented. The user can edit these fields as normal, and then submit the ticket.

Is this flow possible in JSM?

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events