Need to make the Field Mandatory using the behavior

Ashok Geriga
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!
February 25, 2024

As per the requirement need to make the severity field Non-Mandatory for the some projects. 

Used the behavior to make the Field Non-Mandatory by defining the Project Keys by specifying a If Clause. 

Now need to specify the class for making the code check the Field Config that these Projects are using.

2 answers

2 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2024

Hi Ashok,

Are you using Jira Cloud as mentioned on this ticket if so, behaviours use the UI modifications API provided by Atlassian.

This means you can set fields required and as optional but can't check the field config schemes.

We have an example of making fields mandatory here that may help.

Regards,

Kristian

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2024

Hi @Ashok Geriga and welcome,

are you talking about Behaviour provided by scriptrunner? If yes, you can define a mapping to make that behaviour working for specific projects.

Fabio

Ashok Geriga
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!
February 26, 2024

Hi Fabio,

I have removed the Required from the Field config to the Severity field. And used the Script runner Behavior to make the field required to the other project except the fields that I have defined.

Now my requirement is to check both the field config and the Project and then make the field mandate in the field configs mandate apart from the project that I have selected. And this should not impact the other Field Configs as I have mapped the Global Projects with the Issue type.

Can you please provide any resolution in this scenario.

Thanks,

Ashok G.

Suggest an answer

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

Atlassian Community Events