You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
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.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.