Dear community,
I found this functionality for hiding in scriptrunner: Hide UI Element Built-In Script (adaptavist.com)
The suggested one-liner is:
jiraHelper.project?.key in ["SPD"]
This contains the "hide move for project SPD". I just want to exclude issue types. It should not be possible to Move Test & Test Execution issue types. How is the code based on issuetypes?
Thanks in advance.
Nicole
The approach you are using will not work. I am saying this because in the coding you have used i.e.
jiraHelper.projectObject?.issueTypes in ["Test Execution", "Sub Test Execution"]
Firstly, if you are trying to invoke the issueTypes object from the projectObject, this will not work.
The Issue Types need to be invoked from the issue itself.
Instead, you need modify your condition to:-
issue.issueType.name in ["Test Execution", "Sub Test Execution"]
I hope this helps to solve your question. :-)
Thank you and Kind regards,
Ram
The "issue" should be in binding variables. So using this works for me:
issue.getIssueType().getName() != "Task"
To make it less error-prone in general I think this should be better as we don't want to do any comparisons against null, if there is no issue in binding (outside issue view for example).
!"Task".equals(issue?.getIssueType()?.getName())
(Negated due to the inverted "Under what circumstances should this link be displayed." but ofc keep/remove the negation as needed.)
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the quick response. I tried:
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.