New issue 151 by JP.deCastro: Workflow disabled after creating a "Field
value" condition
http://code.google.com/p/jira-suite-utilities/issues/detail?id=151
What steps will reproduce the problem?
1. Select a workflow(made a copy of Jira Workflow) and choose a transition
you want to modify. In this case I modified the "Resolve issue" transition
2. From the "Condition tab" press the Add button
3. From the list of conditons select "Value Field" and press the Add button
4. Choose the field that will be evaluated
5. Select "=" for condition comparison
6. Fill in the value (String) to be compared with
7. Use "String" as the comparison type and press the Add button to add the
condition
What is the expected output? What do you see instead?
After modifying the workflow transition I expected to be able to use/test
the workflow in one of the Issue Types. This is not possible as I cannot
resolve the issue. The Trasition is no longer available and the workflow
has been disabled. The only transitions available are "Start Progress"
or "Close Issue". I'm missing the "Resolve Issue" transition where I have
applied the transition condition.
What version of the product are you using? On what operating system?
Edition enterprise
Version 4.2
Build Number 587
Operating System Linux 2.6.32-25-server
Please provide any additional information below.
Im using the latest version of the Jira-suite-uitilities plugin.
Attachments:
Jira Suite Utitilities Test on Issue.png 25.2 KB
Suite version?
Sorry, miss your note about suite version. Can you turn on debug logging
and put some messages from there?
I will turn on debug logging and see what messages come out.
Abashev,
Could you please tell me how to enable debug mode on Jira? I've been
looking (google results, atlassian forum) around but can't seem to find
information on how to achieve this. The file "web.xml" does not contain
some kind of debug servlet or something I can enable. Your help is
apreciated.
Abashev,
Thanks for the quick response. I have enabled debugging as described. I've
been tailing information comming out from catalina.out but can't find any
error messages for this component (JSU). Everything seems to load correctly.
Only after disabling the "Value Field" module from jira-suite-utilities I
started to get errors, this happens when JIRA tries to display issue
details like the workflow.
As an example such errors start to show up for the issues.
com.opensymphony.workflow.WorkflowException: Could not load condition
But I still can't seem to get any error messages when my transition
condition is beeing validated. The condition seems not to throw any
exceptions....
FYI: After enabling debugging I restarted JIRA
There are two possibilities: you did something wrong then tried to enable
debugging or it is a problem with your installation. JSU generating debug
messages all time, for example then checking conditions or running
post-functions. If you don't it then it does not work. Maybe you are using
different workflow scheme for JSU conditions?
Abashev,
First of all Best Wishes for 2011! Now It's been some time since I have
been working on this issue but here we are again. I think I have managed to
enable the logging part of JIRA with the JSU plugin enabled.
The following debug information is comming from the plugin as I try to view
an issue that now has the workflow disabled. For this issue I created a
condition where he should check for a string value of Linux for testing
purposes.
DEBUG:
2011-01-04 23:34:08,383 TP-Processor8 DEBUG a124492 1414x35x1 cjuhva
161.90.1.167 /browse/FSCALPHA-6
[googlecode.jsu.helpers.ConditionCheckerFactory] Using class
[com.googlecode.jsu.helpers.checkers.SnipetE] for condition [=]; class
[com.googlecode.jsu.helpers.checkers.ConverterString] for type [String]
2011-01-04 23:34:08,387 TP-Processor8 DEBUG a124492 1414x35x1 cjuhva
161.90.1.167 /browse/FSCALPHA-6 [jsu.helpers.checkers.CheckerComposite]
Compare values [null] and [Linux] with result [false]
2011-01-04 23:34:08,388 TP-Processor8 DEBUG a124492 1414x35x1 cjuhva
161.90.1.167 /browse/FSCALPHA-6
[jsu.workflow.condition.ValueFieldCondition] Comparing field 'environment':
[null]=[Linux] as String = false
--
You received this message because you are subscribed to the Google Groups "jira-suite-utilities-development" group.
To post to this group, send email to jira-suite-utili...@googlegroups.com.
To unsubscribe from this group, send email to jira-suite-utilities-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jira-suite-utilities-development?hl=en.
Comment #9 on issue 151 by abashev: Workflow disabled after creating
a "Field value" condition
http://code.google.com/p/jira-suite-utilities/issues/detail?id=151
(No comment was entered for this change.)
Abashev,
This issue has been closed and marked invalid. Could you please explain??
The debug information shows clearly that the value of the
field 'enviroment' is null and is beeing compared with a String value of
Linux. This will logically result to false as the values are not equal. Why
does'nt the compare function pickup the value I inserted for the
field 'enviroment'? I inserted the value 'Linux' and it should NOT result
to NULL. Since that is not working correctly it can be the reason why the
workflow has been disabled.
Please take another look at it.
JP.deCastro,
I'm sorry if I've closed it too early but can you give me a little more
explanations:
1. "I inserted for the field 'enviroment'" - you press 'Edit', enter Linux
into standard (not custom field) 'Environment' field, press 'Save'. Is it
right description?
2. "why the workflow has been disabled" - you don't see transition that you
are expecting. For example, you added this condition into
transition 'Resolve' and right now don't see it in UI. Or you talking about
some different kind of disable?
Can you do screenshots or can I get access to your system?
Hi Abashev,
The following screenshots show the workflow I'm using and the condition I
set for the transition Resolve. Since the workflow has been disabled I
cannot continue to the next step in the workflow.
Attachments:
Screenshot 1 Workflow.png 35.8 KB
Screenshot 2 Workflow Transition - Condition.png 22.0 KB
Everything works fine for me. I've added condition with 'Environment equal
to Linux' and when Environment is empty then I don't see Resolve Issue
button. Then Environment equal to Linux then I'm see Resolve Issue and able
to resolve. I don't see 'workflow has been disabled' on your screenshots.
You not able to edit workflow because it is active but not disabled.
Abashev,
Thank you again for your quick response. I now know what went wrong after
reading your line.. "when Enviroment equal to Linux then I'm able to
Resolve".
So this means my condition is a pre-condition for the next step in my
workflow to be available. After adding the field 'Environment' in the
correct screen (not in the Resolve screen I created earlier) resulted in a
enabled workflow and thus the option to Resolve the created issue. So the
problem was that I thought this condition would be evaluated in the Resolve
screen and not in the Create issue screen. I will paste the screenshot to
show the result.
Thank you very much for your assistance!
Attachments:
Screenshot 3 Workflow Transition - Condition.png 26.8 KB