Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to hide "active sprint" using web resources

hello ,

i want to hide " active sprint " which is shown in figure . using javascript (web resources)

image.png

 

 

1 answer

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.

hii @mogavenasan ,

i have used above code in web resources(.js) but its not working . can you please suggest something else 

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.

hii @mogavenasan ,

 i need to use web resources

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?

hii @mogavenasan ,

i have create fragment- web resources like below .

image.png

and in HideCf.css i have written ,

$("[data-link-id=\"com.pyxis.greenhopper.jira:project-sidebar-work-scrum\"]").remove()

but it wont work .

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

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you