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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to convert invalid_fields variable in python script to java?

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

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

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
TAGS
Community showcase
Posted in Industry Groups

🚗 How the Engineers at Karma used Atlassian products to build the Karma Revero

Hello, Automotive enthusiasts! Are you ready for October to begin 🙀? I wanted to share with you an Article I came across from Work/Life (The Atlassian blog) from Soumya Menon of Go2Group, a worldw...

38 views 2 1
View post

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you