Atlassian Answers Digest #1

May 26, 2014
Aleks Yenin

Posted by Aleks Yenin

Samuel Sun asked: 

I have some users and they are all in a group “System consultant”. I have a user who job is to check issues created by this group of users. This user need to edit issues created by this group of users only, not those issues created by others. Is it possible to do this in JIRA? Thank you.

So the easiest way to achieve that is to write a custom postfunction (as a part of the add-on  https://developer.atlassian.com/display/JIRADEV/Creating+Workflow+Extensions) or as a groovy script postfucntion – https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions.  It will check if a user is inside a certain group, and if yes – save that group in hidden group field. And your permission scheme can be updated for that group with “group custom field” as the permission actor

Bjarne  asked:

I would like to create a notification scheme that notifies “projectrole” when an issue has been allocated to a sprint in Jira Agile How is that possible?

You can notify users if the ticket is edited – but that kind of notification will send emails on any edit of the ticket. If you want really specific notification – you can write or order event listener https://developer.atlassian.com/display/JIRADEV/Writing+JIRA+Event+Listeners+with+the+atlassian-event+Library or create listener with script runner https://jamieechlin.atlassian.net/wiki/display/GRV/Listeners

Ramesh asked:

We are in situation where we want to disable multiple options of the custom field through JIRA at time instead of looping through options set and disable one by one option. Is it possible and is there any API method to do this ?

There is a solution for it: please try to update your options as the doc said https://docs.atlassian.com/jira/6.2.3/com/atlassian/jira/issue/customfields/option/Option.html#setDisabled(java.lang.Boolean) then put them inside collection and then execute like it is showing here https://docs.atlassian.com/jira/6.2.3/com/atlassian/jira/issue/customfields/manager/OptionsManager.html#updateOptions(java.util.Collection)

Thanks for checking the answers, we will be back soon!


More recent posts:


We are always ready to help you