I am working on a service desk customer portal, that requires to hide the create button for certain request types. I am thinking I could use some JS code with script runner to check the service request type and then if it matches the criteria, hide the create button on the screen. However, I am clueless as to how to go about coding that in JS to make it work within service desk?
So requesting the gurus here to please guide me or if possible, provide me with some snippet to help solve this problem...
I don't have an answer ready but I am very curious to why you would like to do this? Why make the request type available if users won't be able to submit it?
Just trying to get the reasons why as that usually helps you getting the best solution possible!
Ofcourse. No problem. That is a perfectly justified question.
As part of our traditional help desk processes we have had a number of customized forms built over the years. As we transition over to service desk, there is a recognition that for some of those help desk tasks, service desk forms may be a bit limited in its abilities and so the plan is to rather just create a headline request item within service desk and then when a user clicks on the specific request type, it just displays a message with a link to create request in the old system. However, within JSD, this is still a type of service desk request and so it still shows the Create and Cancel buttons at the bottom.
Our requirements is to hide the create button for such type of requests.
I hope that helps clarify my position. Also, for easy reference, I've attached a screenshot of such a request.
Hope this helps.
I don't believe this is possible. If you want the old request types to direct the users to the old system then maybe provide that message in the notification for the portal and remove the request types from the project.
I would also go for Jack's idea.
On the other hand there are two more options : doing it the 'hacky' way and injecting via jquery a few script lines that will simply .hide the buttons (I'm hiding the create button internally on one of our JSD instances to force the people to go over the portal). When customizations are getting. serious you should create an own frontend and implement JIRA only via webservices. The rest interface is quite well described. BG!
Thanks Jack and Dennis for your valuable inputs and I couldn't agree more with you. However, given the client needs, while I am more than happy to put forward Jack's suggestion, I am very interested to know from you Dennis, how you hacked your way specifically with JSD. IF you don't mind, could you please share on how you got it working? I understand JQuery but don't know how/where to inject the script within JSD. Also, any other nuances that you may have come across with your impementation would be nice to know...
Thanks so much for your help.
More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the free Certification Prep Course by 30 June 2019 (earlier ...
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