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

Behaviour Plugin on Issue Type

Adam May 7, 2013

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

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Adam May 22, 2013

No answer. I have put this functionality on hold at the client due to more pressing projects.

0 votes
Adam May 7, 2013
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

  • Validate Jira Requiredness is Disabled.
  • User Validator Plugin is Disabled.
  • Guide Workflow is None.

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

TAGS
AUG Leaders

Atlassian Community Events