Forums

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

Read-only date field in Customer Portal

Andrea C
Contributor
July 20, 2020

Hi,

I am struggling in finding a solution for something that I thought was simple.

 

I want a read-only date field with a default value to be displayed in the customer portal and in all the other issue screens.

1 answer

1 accepted

0 votes
Answer accepted
Kerem Caglar [Solveka]
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 20, 2020

You cannot do that with JSD.

If you have Script Runner add on you could create a behaviour and set the default value and make it read only with a initialization script.

If you do not have SR addon, as a compromise you could hide the date field with a default value and set a note on the form somewhere to mention about it. 

Andrea C
Contributor
July 20, 2020

Thank you @Kerem Caglar _Solveka_ !

 

I used SR and it works fine but I noticed a strange behaviour: when I create an issue after I click on the create button and before the issue is created (a few seconds because I am loading data from an external API) the field becomes editable.

Is there a way to keep it read-only even during the creation?

Kerem Caglar [Solveka]
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 20, 2020

Hi

That is normal since all the magic happens on your client with javascript. If you have a slow browser you could notice that glitch.

Andrea C
Contributor
July 20, 2020

I have a slow Jira 😂 built using Docker but it is much slower than another Jira instance installed in the standard way on a Linux server.

Suggest an answer

Log in or Sign up to answer