Good afternoon.
Thank you for a great plugin - I have had a good experience with it thus far.
I have run into one minor issue. I am attempting to remove components from the list, based on the selected Issue Type. When I load the Create Issue screen (using the JIRA default screen), the script appears to execute in a loop, causing the whole page to freeze.
I started with the example script to Add or Remove Options and moved to a simpler script, but the problem persists.
Here is some additional information:
Definition:
Result (Note greyed-out text):
Log excerpt:
2013-05-08 17:07:03,981 http-8080-10 DEBUG aavenant 1027x9423x2 101veai 192.168.2.55 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [description:[setValue:13, fieldType:com.atlassian.jira.issue.fields.DescriptionSystemField, displayName:Description]]
2013-05-08 17:07:05,403 http-8080-1 DEBUG aavenant 1027x9428x2 101veai 192.168.2.55 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [description:[setValue:13, fieldType:com.atlassian.jira.issue.fields.DescriptionSystemField, displayName:Description]]
2013-05-08 17:07:06,763 http-8080-1 DEBUG aavenant 1027x9433x2 101veai 192.168.2.55 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [description:[setValue:13, fieldType:com.atlassian.jira.issue.fields.DescriptionSystemField, displayName:Description]]
... (redacted)
2013-05-08 17:07:27,483 http-8080-1 DEBUG aavenant 1027x9508x2 101veai 192.168.2.55 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [description:[setValue:13, fieldType:com.atlassian.jira.issue.fields.DescriptionSystemField, displayName:Description]]
2013-05-08 17:07:28,951 http-8080-1 DEBUG aavenant 1027x9513x2 101veai 192.168.2.55 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [description:[setValue:13, fieldType:com.atlassian.jira.issue.fields.DescriptionSystemField, displayName:Description]]
2013-05-08 17:07:30,452 http-8080-1 DEBUG aavenant 1027x9518x2 101veai 192.168.2.55 /rest/com.onresolve.jira.plugin.Behaviours/1.0/behaviours/runvalidator.json [onresolve.jira.groovy.BehaviourManagerImpl] Returning map: [description:[setValue:13, fieldType:com.atlassian.jira.issue.fields.DescriptionSystemField, displayName:Description]]
There may be an issue with the images loading because the image upload functionality on this forum appears to need hosted images.
Thanking you in advance,
Adam
Community moderators have prevented the ability to post new answers.
No answer. I have put this functionality on hold at the client due to more pressing projects.
I see now that the images do not load. Apologies. I cannot seem to figure out how to upload them.
No mind. Here is the code. I have intentionally used a basic action:
FormField formIssueType = getFieldById(fieldChanged)
FormField formDescription = getFieldById("description")
String selectedIssueType = (String) formIssueType.getFormValue()
formDescription.setFormValue(selectedIssueType)
The rest of the field configuration is as follows:
General Settings
Fields contains a single field on Issue Type with the above script in the inline field (i.e. not in a class file) The field is optional, writable and shown.
There is a single mapping to a single Project and for all Issue Types (is the fact that the mapping is included perhaps relevant?).
I would appreciate any input that you may have. I will be looking for workarounds in the mean time.
Thanks again.
Adam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.