What I am trying to achieve in my Servicedesk is a Custom read only text field on a request which pops up after something is selected to give the user more information. See below:
So what I did for this was create a custom field of type "Text Field (multi-line)" and I added default text as seen above.
(This is also a dynamic field based on a previously selected item from a list which I achieved using the Dynamic Forms extension.)
Then in the Behaviours admin section (Administration > Manage apps > Scriptrunner > Behaviours) I added behaviours for the field to be set to Readonly:
So I only want this read only field to show when a request is being logged, and not anywhere after. So I assigned the custom field to a Create screen for that issue type.
However, when I log the request, and view it in the portal, I can see the field:
I only want it to be showing when logging the request. How can I fix it so it doesn't show here?
Alternatively, if this text is static to be shown for a particular field, then you can make use of optional Help text for this field in your Request configuration in JSD project.
Also, can you check if you are using the same screen for Create issue and View issue Operations? If it is the case, you will need to make separate screen for View issue operation and remove this read-only text field from this screen.
Hope it helps!
Thanks Taranjeet, I didn't realise I could format the Field help text field in the same way you can format the Help and instructions section. So this has helped add extra notes for users! Although there are still some issues for when I want to add notes and there is no field I can attach this to for it to make sense. But it's a good start anyway.
I had created separate screens for them. But I think maybe the create screen must cover both the create screen when creating a request and also when viewing it within the portal, which is a bit annoying
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad, it helped! Please mark the answer as accepted for helping others in the community! Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Claire Berry Try removing this field from the screen used for View Issue operation in the Screen Scheme of your relevant issue type in your JSM (JSD) project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Taranjeet Singh,
Thanks for the reply. I only have this field on the Create screen, and it is not on the View screen.
I think this might be showing because there is a default value? Which I need to display the text. Is there any way to fix this or is there a better/alternative way to display notes for the user when creating a request?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.