This is the beginning of my next challenge.
I need help with a (small and simple )script runner code.
The idea is to populate a custom field (number) according to the reporter's information.
Something like:
If reporter = A@mail.com
Custom field = 1
Else if reporter = B@mail.com
Custom field = 1.3
Ese if reporter = C@mail.com
Custom field = 2.23
(...)
Probably the best option is to use a while/switch:
def reporter = issue.getReporter()
switch (reporter) {
case 'A@mail.com': Custom field = 1 break
case 'B@mail.com': Custom field = 1.3 break
case 'C@mail.com': Custom field = 2.23 break
Yes, I know this is a very simple script, but I'm starting with this, so I need your expertise.
Thanks in advance.