Hello,
We are using the add watcher field (https://marketplace.atlassian.com/plugins/com.burningcode.jira.issue.customfields.impl.jira-watcher-field/versions#b156).
And we have a project secured by issue security schemes.
Is it possible to allow browse issues just to users that are in "watchers" role and to edit the watchers after creation?
In issue security scheme I could add "User Custom Field Value (Add Watcher)", but I cannot add new users to watchers. Everytime I try I get message "The user "ttester" does not have permission to view this issue. This user will not be added to the watch list." althought he has permissions to browse project. How can I setup such a configuration?
Best,
Robin
Because you are using issue level security, you can't actually use the watcher field in order to grant this user access to that issue. It's not project permissions that are preventing this, it's a limitation of the issue security. But I think this is by design.
If you check out the Issue Level Security: Adding members to a security level, it explains that:
A security level's members may consist of:
- Individual users
- Groups
- Project roles
- Issue roles such as 'Reporter', 'Project Lead', and 'Current Assignee'
- 'Anyone' (eg. to allow anonymous access)
- A (multi-)user or (multi-)group picker custom field.
This doesn't permit you to use watchers to give security access specifically. However what you could do is create a multi-user or multi group custom field, and have that custom field appear on this project. From there you could change the issue level security to grant users access that are on that field. From there you can manually edit that custom field for all the issues where you want to grant this user/group access.
It is not as simple as using the watcher field would be, but this one way to be able to manage and adjust access to issues when using security levels in Jira.
This worked nice. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is silly and barely qualifies even as a workaround. The big problem is that you cannot remove the existing watchers field, so adding a second one is going to cause confusion.
A watchers field is just a list of users, not fundamentally different from the custom user field you mentioned, so it seems like a huge oversight to not allow users to include watchers as a selectable group for other purposes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have to agree, that while this fulfills the ask, it's a terrible work around. We encourage administrators to reduce fields as much as possible, not a duplicate field that already exists so that we can accommodate basic functionality. @Andy Heinzer are there plans to fix this in future releases?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andy Heinzer I see this feature request: https://jira.atlassian.com/browse/JRASERVER-7663
And it has been marked as resolved, but I can't tell if it was fixed or just resolved as there's a work around. Would it be possible to get clarification?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Brian,
Technically that feature request was implemented and marked as resolved. However I fear that the title is a bit more broad that what I think you are looking for here. Before that request it wasn't possible to grant the watchers entity permissions at all in Jira.
However the original question here was in regards to using the watchers field as a means to restrict user visible content within a issue security scheme, not a permission scheme. They are certainly related concepts, but technically these are different mechanisms within Jira. As such I don't feel that JRASERVER-7663 applies to this particular case.
Instead I think the current feature request to watch for the original question is now JRASERVER-5982. The issue is listed as gathering interest status. There is not a clear time table for if or when it might come to Jira Server, but it is being tracked.
Andy
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.
The ticket you linked to is over FOURTEEN YEARS old. I have voted for it as well but I am not going to hold my breath.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is also another related ticket created for this missing functionality: https://jira.atlassian.com/browse/JRASERVER-45488.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I created a multi-user picker and a security level drop-down list with the following code:
/** Security Leve toggle event handler */
function toggleSecurityWatchers() {
var security_watchers = document.getElementById("customfield_12500");
var security_watchers_container = $('#customfield_12500_container');
var security_watchers_div = security_watchers_container.parent();
var security_select = $('#security');
function updateSecurityWatchersVisibility() {
var selectedOptionText = security_select.find("option:selected").text().trim();
security_watchers_div.toggle(selectedOptionText === 'Only visible for "Security Watchers"');
}
updateSecurityWatchersVisibility();
security_select.on('change', function() {
updateSecurityWatchersVisibility();
});
}
toggleSecurityWatchers();
Do you know the usage of the following code:
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (event, $context, reason) {
if (reason === JIRA.CONTENT_ADDED_REASON.pageLoad || reason === JIRA.CONTENT_ADDED_REASON.panelRefreshed) {
setCommentPosition();
}
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.