how to convert invalid_fields variable in python script to java?

Bharadwaj Jannu
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 11, 2013

Hi

I'm converting a python script(which uses invalid_fields variable) to java language.

e.g: I want to convert

invalid_fields['priority'] = u'Please select proper Priority.'

please provide how it is represented in java.

2 answers

1 accepted

0 votes
Answer accepted
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 20, 2013

You need to return an ErrorCollection, see com.atlassian.jira.util.ErrorCollection#addError(String field, String message).

0 votes
Bharadwaj Jannu
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 12, 2013

The invalid_fileds variable is used in python script which acts as inline script for jss plugin.

So please consider as a related question to atlassian software.

Suggest an answer

Log in or Sign up to answer