You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I've created a small JavaScript file to hide the "Organization" option on Servicedesk portal forms. I've read up on the issue and seen that I should add the context "consumerPortal" and that is a problem as it doesn't exist in the list of context(s).
So I selected come.atlassian.servicedesk.application.about instead (and i've tried a few others) but my JavaScript doesn't appear to be running anywhere. When I hit preview I get the XML context and when I hit Add I get sent back to the script runner fragments page but the web resource I just added is nowhere to be found.
Below is the XML I get back from preview.
So how do I set the correct context to get this to run on service desk forms? Can I edit this XML somewhere after adding the fragment?
Will register the following XML:
<web-resource key='consumerPortal' name='ScriptRunner generated web resource - consumerPortal'> <transformation extension='css'> <transformer key='tracking-transformer' /> </transformation> <transformation extension='js'> <transformer key='tracking-transformer' /> </transformation> <resource name='SetPrivate.js' type='download' location='SetPrivate.js' /> <context>com.atlassian.servicedesk.application:about</context> </web-resource>
We are on:
JIRA Service Desk 4.5.4
Jira Software 8.5.4
Jira Core 8.5.4
Scriptrunner: 6.0.2-p5
The correct context was customerPortal not consumerPortal this resolved the issue.
We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan. &nb...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.