History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRA-13667
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Dominick Moré
Votes: 4
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
JIRA

Make field required per issue status

Created: 03/Oct/07 09:22 AM   Updated: 09/Jan/08 10:14 PM
Component/s: Workflow
Affects Version/s: 3.9.3 Enterprise
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Reference
 

Participants: Anton Mazkovoi [Atlassian] and Dominick Moré
Since last comment: 31 weeks, 4 days ago
Labels:


 Description  « Hide
When a new "Defect" Issue is created the Field FixedVersion cannot be required until it is determined if the bug report is valid and in what version it will be fixed. In this case we set the Field to optional in the "Field Configuration". When the Issue follows a workflow path where the Issue will be fixed then the FixedVersion must be always required. Now we can make the Field value required in the "Step Transition" Validator but when a user selects a "standard" JIRA action (i.e. Edit) then the FixedVersion field is optional again and can be set to "NUL". The next step validation will fail because the field value is not set.
Actually it makes more sense to associate the Conditions,Validators and Functions with the "Step" because many "Transitions" can lead to a step, but the "Step" occurs only once. "Transitions" configurations that lead to the same "Step" are redundent if the configuration is defined in the Step. The "Edit" and "Bulk Edit" actions would then also refer to the configuration of the "Step". This would also solve the problem applying "Conditions" to the "Create Issue" action.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] - 03/Oct/07 09:47 PM
Dominick,

It is not possinle to have conditions and functions on a step as the OSWorkflow Engine does not allow this.

I believe you are after the ability to set a field to required for certain statuses. This is related JRA-5783, but different, as you would like to protect the requirebility of the field even after the transition is performed, i.e. such that when the issue is Edited in a status the field stays required.

I will change the summary of this issue to reflect this and will leave this issue open. However, adding this functionality would increase the complexity of JIRA, and this is something that we would like to avoid. Therefore, at the moment I cannot promise the delivery of this feature.

I think the reuse of conditions and post functions can be achieved by JRA-6975. Please vote for JRA-6975.

Please let me know if I have misunderstood what you were saying.

Cheers,
Anton


Dominick Moré - 04/Oct/07 04:56 AM
I believe that the reporter of Issue JRA-5783 has a similiar intention as I do but the dicussion drifted off topic and wound up trying to solving this problem with State Transition Validators. MY ISSUE DOES NOT HAVE TO DO WITH STATE TRANSITION VALIDATION...
My argument of putting the Conditions and Validators in the "Step" instead of the "Step Transition" attempts to demonstrate a way to solve this problem. First it allows you to reduce redundency and secondly it allows you to customize "Step Transitions" as well as "Standard Actions" (i.e. A Condition that requires a particular project Role could prevent certain users from creating certain Issue types or a Validator on Status "In Progress" could insure that all "Transitions" leading to state development require a "Fix Version" as well as when editing the Issue in status "In Progress" ) The reuse of validators and conditions in Issue JRA-6975 is therefore only a side effect of this kind of implementation.
Basically I need a solution for handling the field requiredness in a "built-in" action (i.e. Edit, Bulk Edit). As I see it, the field requiredness/modiability is architecturally coupled with the screen layout and the permissions manager. Ultimately the class com.atlassian.jira.issue.fields.layout.field.FieldLayoutItemImpl isRequired() method must return the correct requiredness.
There appears to be two camps here as to how this Issue should be dealt with:
Some work has already been done in the "Step" configuration through property settings (i.e. jira.field.resolution.exclude). A property called jira.field.required = 10040,... could be set on the step, but this is not a very elegant solution.
Another possibility would be to make it possible to set the options "required,optional" on each field of the screen editor. Considering the current jira design this would probably be the best place to handle this issue, although configuring the "Step" has more interesting possibilities.

Anton Mazkovoi [Atlassian] - 04/Oct/07 10:17 PM
Dominick,

Thanks for the update. I agree with you. I would prefer to actually implement "requiredness" on per step basis. However, as you have mentioned, this is not very easy. Therefore we are likely to opt for "requiredness" per transition, i.e. JRA-5783.

Again, thanks for your feedback!

Cheers,
Anton