How to access filed value from transition screen in validation


I'm trying to check that user fill linked issue in transition screen (with additional conditions on the linked issue, so I need script runner).

How can I access the linked issue it validation?




don't return it because it happen before the transition is finished.

Please help

1 answer

1 accepted

Hi Henning,

I'm still using the code that you gave me in the answer mentioned above. Thanks again! As a follow-on, how did you find the actual field/parameter names to be used in the code? If I want to use a similar method for another field, how did you find the names issuelinks-linktype and issuelinks-issues? If I remember right, viewing the page source shows me the main issue browse page, and not the transition dialog source.


linktype = request.getParameter('issuelinks-linktype')
linkedIssue = request.getParameter('issuelinks-issues')
(linktype == 'duplicates' && linkedIssue)

It's really only links that you need to worry about. Other fields you get from the issue in the normal way. This is a jira bug/shortcoming imho, haven't got round to reporting it yet.

Robert Poldervaart,

you can enumerate all possible parameters by simple loop:

for (def entry : request.parameterMap) { + "=" + entry.value)

You can, and that's nice and simple (I gave you a "like") - but I wouldn't recommend getting parameters like this. The reason is you will need to do type conversion yourself - eg if the assignee, then from a string to a User object, if "affects versions", from a String[] of version IDs to a Collection of Version objects. I don't think it will take you to a happy place.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted yesterday in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

47 views 2 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot