Forums

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

How to create mandatory fields using direct HTML links in Jira Server?

Michał Lipka
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!
January 12, 2024

How to create mandatory fields using direct HTML links in Jira Server?

 

Whenever someone is using direct HTML link to create Jira, I'd like to mark some fields as mandatory. For example  it shouldn't be possible to create a jira task with empty "parent link" filed. 

 

https://confluence.atlassian.com/jirakb/how-to-create-issues-using-direct-html-links-in-jira-server-159474.html  

1 answer

0 votes
Nic Brough -Adaptavist-
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.
January 12, 2024

Welcome to the Atlassian Community!

You can't do this directly, Jira field's mandatory settings are done inside the application, not by dint of the URL you visit.

There are two systems involved here.

  • In Jira, you can set fields mandatory, which means that they have to be filled in during create, and filled when you commit an edit or transition.
  • The other system is your URL - what is building that URL for the users?

The best thing you can do here is code your URL building application so that it:

  • Ask Jira what fields are available and mandatory when the user tries to create an issue of a certain type in a project
  • Feeds that back to the user as a set of questions for the field values (whether it's all the fields or just the mandatory ones, or whether you choose to automate some of the fields, and not ask the user - up to you)
  • Generates a link that fills all the fields you need to.

I would change step 3, as it's quite clunky.  Gather the information as in steps 1 and 2, and then get your system to issue a REST call to Jira to create it without the user having to visit.

You could also bypass all of that by using a Jira Issue Collector configured to ask for (at least) the mandatory fields.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events