Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to change a required field to optional when creating an issue , using SIL langage in Power scrip

ichrak_djebrit November 28, 2023

how to change a required field to optional when creating an issue , using SIL langage in Power scrip

1 answer

0 votes
Anna Hryhoruk _Appfire_
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.
November 28, 2023

Hello @ichrak_djebrit ,

It`s important to know how the field is set to be required in your system: using Power Scripts functionality or Jira native configuration. In case it`s done via Power Scripts it can be a validator/condition on transition, or Live Fields script so if that`s the case please share such script you currently use. But if you configured a field to be required via Jira's user interface using the "Required" link associated with that field, I don`t think we can make it optional via SIL script. As a workaround, we can add some default value to that field on the Create issue.
Please add more details about your current setup and maybe we`ll find some options. 

Best regards,
Anna

ichrak_djebrit November 28, 2023

Thank you for your response, @Anna Hryhoruk _Appfire_ , actually it is a system field and it is required by default in the sytem (Summary) so i can't change it to optional in the configuration of that field, so i need a solution for this, (i'm thinking about using SIL langage  but i didn't create a script yet),

"The idea is that i want to create  an issue with optional summary field "

Anna Hryhoruk _Appfire_
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.
November 28, 2023

@ichrak_djebrit , unfortunately, it`s not possible to make a summary field optional in Jira. It is always a required field, and the only workaround I can suggest is to add some default value to it on the Create screen using Live Fields from Power Scripts. Please check this page, it describes how to set default values for system fields on the Create screen. The summary field is not a part of the example, but it can be used there in the same way as the description field. 

Best regards,
Anna

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events