Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Require Component Field When Closing Ticket

Sharadkumar Bangera
Contributor
October 14, 2020

I want to make Component Field Mandatory only when Resolving the ticket, not while creating while editing a ticket and only for A project (The component linked with Project A , Project B , Project C)

I tried to make changes in Workflow "Resolved" transition validator , i dont see any valid option to add the validator.The option which i see is
1) Validates that the user has a permission.
2) Runs a script to check validation, or a built-in script.
3) Validator that depends on a Boolean expression.
4) Validates that the user has a permission, where the OSWorkflow variable holding the username is configurable. Obsolete.
5) Field Not Empty Workflow Validator

Can you please guide me with a details steps

3 answers

1 vote
Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2020

Hi @Sharadkumar Bangera ,

You can add a transition screen for Resolved transition with component field and field required validator.

Field Not Empty Workflow Validator. Make component/s required.

For Option 2:

You can also use simple scripted validator with "Runs a script to check validation, or a built-in script". Remove the component field from create and edit screen. Add the field to the transition screen. Add the below simple scripted validator

issue.getComponents().size() != 0

0 votes
Sharadkumar Bangera
Contributor
October 15, 2020

Hi @Niranjan 

Thanks Niranjan for the update.

For option 1, the transition screen is also shared by other 3 projects and i dont want the other 3 projects are also impacted because of the specific requirement in project 1.

Can you help me how can i implement it without any impact on other projects.

Please elaborate the steps.

0 votes
sharadkumar.kariya.bangera
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 15, 2020

Thanks Niranjan for the update.

For option 1, the transition screen is also shared by other 3 projects and i dont want the other 3 projects are also impacted because of the specific requirement in project 1.

Can you help me how can i implement it without any impact on other projects.

Please elaborate the steps.

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 15, 2020

Hi @Sharadkumar Bangera ,

In that case, the best option would be to copy the workflow scheme and create a dedicated scheme/workflow for the project that needs the change.

Suggest an answer

Log in or Sign up to answer