The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 Champions.
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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.

TAGS
AUG Leaders

Atlassian Community Events