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

Javascript for FixVersion/s

Cynthia Fehr
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2015

Hi,

I'm trying to stop users from being able to add new version from the fixVersion field. 

I'm using the following in the description of the Fix Version/s field:

<script type="text/javascript">

AJS.$('#fixVersions')[0].attributes.getNamedItem("data-create-permission").value="false"

 </script>

This sets the attribute data-create-permission in the main window but not in the popup(lightbox)

It seems that

AJS.$('#fixVersions')[0].attributes.getNamedItem("data-create-permission").value

always refers to the fixVersion in the main window. 

 

Can someone tell me how to select fixVersions in the popup window(lightbox)?

 

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Cynthia Fehr
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2015

The problem is that you need project admin privileges to have scrum master privileges.

There is a feature request to separate them with over 300 votes and has been open for a long time

jra 1431

So this is a problem for a lot of people.

Do you know how to access that field through javascript?

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 26, 2015

The ability to create versions on the fly had a lot more votes than that, and that issue is more about delegation of admin in general than reducing functionality. No, I don't know how to do it with javascript, because my users would have killed me for downgrading it. Seriously, training is by far the right approach here.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 26, 2015

I'd recommend reviewing the privileges and/or training.  The reason this facility exists is for people with project admin rights really need to be able to do it.  If it is causing you problems, then the issue is not "software bad", but either "humans have project admin when they should not" and/or "humans don't know what they're doing"

TAGS
AUG Leaders

Atlassian Community Events