Forums

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

How can we require a Template be selected on Create?

Paul Madison
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.
December 11, 2020

We are working on the workflows for our Change Requests.  We have a field called 'Change Type' (Standard, Normal, Emergency)  For Standard changes we want to require a Template be selected from pre-approved change templates.

I can't find a simple way to do this because the 'Template' field is not a simple custom field.

2 answers

0 votes
Jakob MM
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!
December 6, 2023

Hi,

the value of the Templates field is always of type RegularImmutableMap and is not recognized as an empty value.

We implemented a groovy script in the Valdiator of the workflow to check if there is actually a value in the Map.

simply with isEmpty()

Hope that helps

BR,
Jakob

0 votes
Daniel Ebers
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.
December 12, 2020

Hi Paul,

for a very similar use case we used in the past "Issue Templates" from Deviniti.
I am only a bit unsure because of your statement "the 'Template' field is not a simple custom field" - does this mean there is some mechanism already in place to which it would be required now to have attention paid or does that only mean you were not able to fulfill the requirement using the built-in custom fields?

When it comes to "Issue Templates" my question would be if you need to have all this working on customer portal or in Jira itself ("agent view") - basically when using the create button.

For the customer portal I am not able to tell right away if this approach would work there also.

Probably you could describe a bit further the setting as well as say something to the open questions, I think a solution should then be easier to find :)

Regards,
Daniel

Paul Madison
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.
December 14, 2020

Hi Daniel, thanks for your response.

We are using the "Issue Templates" from Deviniti.

We want the Agents to select a Template if the 'Change type' custom field is Standard.

 

I attempted to write a post-function using Scriptrunner, but was not able to figure out the Template field, since it is not a standard type of custom field.

Daniel Ebers
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.
December 14, 2020

It might be our use case were a bit easier or structured otherwise so I cannot say anything specific, especially when it comes to the induction of ScriptRunner.

In case setting the default template (https://deviniti.com/support/addon/server/issue-templates/latest/default-template/) is not what you are looking for I'd suggest reaching out to Deviniti support. Probably this is the easier way round in that specific case?!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events