Hi,
in a js file we have a function that hides attachments and some fields from users in fields "Job Interviewer 2" and so on.
The problem is, that if that user is in this field BUT also in group "Managers" in the same time, he/she should see this fields.
Could you help us, how to do it?
Our code for hiding:
function removeInterviewer2Fields() {
if (getCurrentUserName() == getJobInterviewer2CSD() || getCurrentUserName() == getJobInterviewer2PBS()) {
hideFields();
if (getCurrentStatus() == 'Contract offeredContract offered' || getCurrentStatus() == 'Contract acceptedContract accepted' || getCurrentStatus() == 'Contract signedContract signed')
{
hideAttachments();
}
}
}
Thank you in advance
Urszula
Hi @Urszula Forenc,
would you ever consider trying scriptrunner's hide function?
https://scriptrunner.adaptavist.com/latest/jira/fragments/HideUIElement.html
I've used it a couple of times with conditions similar to what you're describing, though I'm unsure whether it would work for the attachment panel.
But is there an easy way, the exception, lets say (I am not a programmer ;)) "but not in group Managers"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register NowOnline 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.