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.
hello ,
i want to hide " active sprint " which is shown in figure . using javascript (web resources)
Hi @sgole,
I tested this on browser Console and it worked:
$("[data-link-id=\"com.pyxis.greenhopper.jira:project-sidebar-work-scrum\"]").remove()
I hope that this helps.
Thanks,
Moga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii @mogavenasan ,
i have used above code in web resources(.js) but its not working . can you please suggest something else
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about you place that inside the Jira Announcement banner? Make sure you have added some logic before removing the element, for example, check the URL and check if the element exists and etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sgole,
I don't understand what you mean by "web resources".
When you mentioned that it's not working, have you tried to do some logging? Does the Javascript able to find the element on the page? Is there any error on the Console log?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hii @mogavenasan ,
i have create fragment- web resources like below .
and in HideCf.css i have written ,
$("[data-link-id=\"com.pyxis.greenhopper.jira:project-sidebar-work-scrum\"]").remove()
but it wont work .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sgole,
I don't think jQuery commands should be placed in a stylesheet file (.css). And this Install web resource - is this from Scriptrunner?
Are you sure you are using this function correctly? You might want to refer to this doc for a better understanding. For the Context(s), how did you deduced to jira.view.issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.