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
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?
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events