Require field in workflow transition

Hi,

I am currently testing out Jira Servicedesk and I'm trying to setup a change process for us.

I've created a custom workflow based upon the default. From creation, the issue moves to awaiting approval and from there can - for example - be declined.

When it is being declined, I want it to show a screen with a custom comment field which would be required.

I've set it up in the workflow to transition to declined, with the transition set to the required screen.

I have then followed the Confluence article here without errors.

https://confluence.atlassian.com/jirakb/how-to-make-jira-applications-fields-required-in-a-workflow-transition-691011903.html

The validator is set up: Required fields (ignoring context): Change - Approver Comment

I've tried this both with and without ignoring context. However, when the approver clicks on decline, the issue simply goes to the status decline without presenting a screen.

I have triple checked the workflow, the screen, the custom field. The field is on the screen when I check it manually. The screen however doesn't display when 'decline' is clicked. The workflow however does show the required screen in the Edit Transition box.

I am unsure where to look or what to test at this point, any thoughts would be much appreciated!

 

1 answer

0 votes
Jack Brickey Community Champion May 03, 2017

Bryan,

you should be able to simply define a new screen let's call it Decline Request Screen and attach it to the Decline transition. Then in this new screen you can have whatever fields you want and you can make each required or optional. You may even want to add a 'decline reason' code that is a drop down.

There is good documentation for adding screens on Atlassian site.

hope this helps.

Hi Jack,

 

Thanks for your reply!

 

I already had a screen attached to the transition, but it didn't show when transitioning.

However, I have found the reason. I had a condition (which was copied from the original JIRA provided workflow):

"Block transition until approval:Condition to block issue transition if there is a pending approval."

I removed this condition from the transition and now it does show the screen.

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Service Desk

Looking for teams who switched from email to Jira Service Desk

The Jira Service Desk marketing team is working on a guide to help new Atlassian customers switch from email to JSD and we'd love to hear from you! Please share: - What made you realize that i...

259 views 1 7
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you