如何在 Jira 中仅在工作流程屏幕上设置必填字段
我正在配置 Jira 以进行错误报告,我已经自定义了用于创建“错误”问题类型的创建/编辑/查看屏幕并定义了自定义工作流程,我的两个工作流程步骤“已解决”和“已关闭”具有自定义屏幕或“视图” ”,因为它们似乎在工作流程配置中被调用
到目前为止,我看不到任何可能的方法来仅在“已解决”或“已关闭”视图/屏幕中设置所需的字段,因为我无法将字段配置分配给这些屏幕。
如果我只是尝试使用默认字段配置将不同的字段分配给不同的屏幕,这些字段将根据需要显示在我提到的屏幕上,但是它们在“创建”等屏幕中也将是必需的,即使它们与这些屏幕
是否有人在 Jira 中成功设置了工作流程屏幕的必填字段,而该字段在后续屏幕上不是强制性的?我想我已经尝试了几乎所有可能的配置组合来做到这一点,而无需诉诸插件或黑客攻击
I am configuring Jira for bug reporting, I have customised the create/edit/view screens for creating a "Bug" issue type and defined a custom workflow, two of my workflow steps "resolved" and "closed" have custom screens or "views" as they appear to be called in the workflow configuration
So far I can't see any way possible to make a field required in only the "resolved" or "closed" views/screens because I cannot assign a field configuration to these screens.
If I just try use the default field configuration assigning different fields to different screens, the fields will show as required on the screens I have mentioned, however they will also be required in the "create" etc. screens even though they have no association with those screens
Has anybody successfully setup required fields in Jira for workflow screens without that field being mandatory on subsequent screens? I think I've tried almost every possible combination of configuration to do this without resorting to plugins or hacking
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在工作流程中进行更改。
如果您正在处理活动的工作流程,请转到工作流程并复制它。然后在副本中,单击您想要具有必填字段的“*转换”。因此,如果您希望从“已解决”移动到“已关闭”以具有必填字段,则单击名为“的已解决”转换关闭问题”。
在这里您应该看到“条件”、“验证器”和“发布函数”选项卡。您想要创建一个验证器。转到验证器并单击添加
它将给出 。您可以选择各种验证器。希望其中一个是“必需的字段”*,然后选择该验证器并单击“下一步”,以便您选择此转换所需的字段。只需选择您需要的字段并单击“下一步”,
然后您将需要激活该新工作流程,其中涉及将其添加到工作流程方案中,然后将该工作流程方案分配给您的项目。帮助解决该部分,然后发布新的问题并给我留言,我会尽力帮助您,
最近我一直在使用自定义工作流程进行大量工作,其功能和多功能性简直令人惊叹。
*我说希望是因为我有“必填字段”选项,但我还安装了几个可能添加了该选项的工作流程插件。如果您没有,那么您可能需要安装以下插件:
You need to make that change in the workflow.
If you are working on an active workflow then go to workflows and make a copy of it. Then in the copy, click on the *transition" that you want to have the required field. So if you want the move from "resolved" to "closed" to have a field be required then click on the "resolved" transition called "close issue".
In here you should see tabs for *conditions", *validators", and "post functions". You want to create a validator. Go to validators and click add.
Here it will give you a choice of all sorts of validators. Hopefully one of the is "fields required"*. Choose that validator and click "next". It will then give you a multi-select list to chose which fields should be required for this transition. Simply choose the fields you want required and hit "next".
Once this is all done you will then need to activate that new workflow. Which in volves adding it to a workflow scheme and then assigning that workflow scheme to your project. If you need help with that part, then post a new question and leave me a comment and I'll try to help you out.
I have been doing a LOT of work with custom workflows lately and the power and versatility is simply staggering.
*I say hopefully because I have the "fields required" option, but I have also installed a couple of Workflow plugins that may have added that one. If you don't have it then you may need to install on of these plugins: