how can I hide some issue type in the button what created by scriptrunner.
I need to keep only sub-bug and test types.
Script fragments
Link
/secure/CreateSubTaskIssue!default.jspa?parentIssueId=${issue.id}&issuetype=10003 - only one type
/secure/CreateSubTaskIssue!default.jspa?parentIssueId=${issue.id} - all issue types
@Виктория For sure you can do it with the Behaviors from the script runner plugin
please see similar question here with sample code, if you have problem you can paste your code here
Kind regards,
Moses.
@Moses Thomas Its not working with the "button", what was created by fragments by the same Scriptrunner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Moses Thomas
by this condition I can hide this button from the customer role. but it works in all projects, I need hide it in only two of them. Help me please with the script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Виктория In your code you are not checking the projects, before restricting it to the customer role. Try this.
if (issueContext.projectObject.name == 'A' || issueContext.projectObject.name == 'B')
{
!projectRoleManager.isUserInProjectRole(currentUser,CustProjectRole,issue.getProjectObject())
}
Kind regards,
Moses
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.