0

I have jira and i try to execute on workflow jython script. I have successfully added them on step (in my case "starting") and save. But after that I got the error when i clicked on this button in jira:

root cause: Traceback (most recent call last): 
File "/var/atlassian/application-data/jira/jss/jython/__init_interpreter__.py", line 6, in <module> codecs.setDefaultEncoding('utf-8') 
LookupError: no codec search functions registered: can't find encoding 'utf-8' 
It seems that you have tried to perform an illegal workflow operation. If you think this message is wrong, please contact your JIRA administrators.

Please help : there is init_interpreter.py :

# -*- coding: UTF-8 -*- 
import sys
if sys.getdefaultencoding() != 'utf-8': 
 from org.python.core import codecs 
 codecs.setDefaultEncoding('utf-8')
from com.quisapps.jira.plugin.workflow import JythonFileUtil 
path = JythonFileUtil.getInstance().getJythonPath() 
if path not in sys.path: 
 sys.path.append(path)
from com.quisapps.jira.jss.jython import JythonUtil 
path = JythonUtil.getJythonPath() 
if path not in sys.path: 
 sys.path.append(path)

and there is my new script that I try to execute :

summary = parameters['summary'][0]
if summary.find('OMG')=>0:
 result=False
 description = u'Ururu'
 invaild_fields['summary'] = description

I have tried "Reinstall everything" in Plugins - Scripting Suite section, but it's doesn't help.

Also if need, there is error in catalina.out

enter image description here

Nuwan
1,4041 gold badge15 silver badges39 bronze badges
asked Jul 29, 2015 at 14:45
1
  • I'm not able to answer your question, but not doing that might be a good idea. setdefaultencoding is not recommended. stackoverflow.com/questions/28657010/… Commented Jul 30, 2015 at 3:49

2 Answers 2

2

Try to reinstall jython. Get the .jar file from official site : http://www.jython.org/downloads.html

answered Aug 3, 2015 at 7:37
Sign up to request clarification or add additional context in comments.

Comments

0

Try to reinstall Jira Scripting Suite:

  1. Go to Administration page.
  2. Under Scripting Suite section select JSS installer
  3. Click Reinstall everything

If it will not help - reinstall Scripting Suite for JIRA add-on

answered Oct 5, 2018 at 18:38

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.