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
And yea, it's jQuery. Let me know if you need that to be Javascript.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.