Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

script fragments for issue type

Paz Grimberg March 14, 2017

I want to use script fragments to hide "Clone" option from "More" menu for an issue type (epic).

What syntax should i use?

I tried :

issue.issueType?.name != 'Epic'

and also:

issue.getIssueType().name.toString() != 'Epic'

Please advise.

Thanks!

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
Thanos Batagiannis _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2017

Hey Paz,

log.debug "---> Issue type is  ${issue.issueType.name}"
issue.issueType.name != "Epic"

should do the trick.

I would say stick a debug message in order to see what the issue type is (click more and then check the logs )

Paz Grimberg March 14, 2017

Works!

Thanks much smile

JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2017

It's no different from the first thing you tried (or the second). Do you know what else changed to make it work?

0 votes
Paz Grimberg March 14, 2017

@Thanos Batagiannis [Adaptavist]

Hii Thanos, you helped my once with script fragments syntax. maybe you can help at this one too? Thanks!!

TAGS
AUG Leaders

Atlassian Community Events