Forums

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

Attachment System Field Require

Rudina Aldubayan February 19, 2024

The attachment field system is a requirement in Jira Service Project.

However, there is an issue with certain transitions in the workflow where a screen appears containing required fields. The status should not change until the customer fills out these required fields.

Currently, the system only works for all required field but doesn’t work with the (Attachment system field) How can this problem be resolved?

 

Knowing that I have tried many solutions, like:

  • Permission for current assignee in the attachment section

 

  • Validator
Fields Required (JSU)
Required fields:Attachment

 

  • Condition
def customFieldManager = CoomponentAccessor.getCustomFieldManager() 

def issue = issue

def customField = customFieldManager.getCustomFieldObjectByName("Attachment")

def customFieldValue = issue.getCustomFieldValue(customField)

if(customFieldValue) {

return true

} else {

return false

}

 Nothing works. 

2 answers

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
February 19, 2024

Hi Rudina,

If you want the user to be able to move to that status without filling in those fields, then you need to remove the Field Required validator in the workflow for the transition going to that status. 

So edit the workflow. 

Click on the transition to that status. 

Then click on Validators in the popup to the right. 

Remove any Field Required validators for those fields. 

Rudina Aldubayan February 19, 2024

Dear John Funk,

Thank you for your kind support!

 

I would like to request that the Assignee fill in the three fields that I have included in the Validators. However, I have encountered a problem where two of the fields have become required, but the Attachment field has not.

Although there is a required sign (*) present, it does not seem to be functioning properly. This means that the Assignee is able to change the status without uploading anything, unlike the other two fields which are working correctly.

 

Best regards, 

Rudina

John Funk
Community Champion
February 20, 2024

Can you share a screenshot of your validators? Did you use the built-in Field Required validator? Or did you use from a plug-in? 

Rudina Aldubayan February 20, 2024

This is the my Validators:

validator.PNG

 

The Description and Do we send email? fields functioned correctly, but there was an issue with the Attachment filed.

Upon closer examination, I observed that while the Description and Attachment fields are both system-generated, the Description field is correctly labeled as such, whereas the Attachment field is not.

 

Here's an images to illustrate my point:

description.PNG

attachment.PNG

Reshma Begum {Appfire}
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.
February 20, 2024

Hi again @Rudina Aldubayan 

Looks like you are using the Jira Datacenter\Server as the Field Required Validator from JSU is supported by Atlassian in the Cloud. Please confirm!


Since you are using our JSU app (Appfire), we have created a support ticket in our support portal to troubleshoot this case: SUPPORT-168570
We’d like you to sign up for the portal and let us know your username so that we can mark your ID as the reporter so you can access the ticket.

Please find the below link to sign up on the portal here

Thanks

Reshma

Like John Funk likes this
John Funk
Community Champion
February 20, 2024

Yes, please confirm - are you using Jira on Data Center? Or on Jira Cloud? 

Rudina Aldubayan February 20, 2024

Dear @John Funk ,

I am using Jira on Data Center.

Like John Funk likes this
Rudina Aldubayan February 20, 2024

Dear @Reshma Begum {Appfire} ,

This is what is shown to me when I opened the ticket.

 

no access.PNG

Like John Funk likes this
Rudina Aldubayan February 20, 2024

Dears @John Funk , @Reshma Begum {Appfire} ,

I am pleased to inform you that I have found a solution to my issue.

After some research, I discovered the JSU Validator, which is specifically designed for Jira cloud. I have successfully utilized the Field Required Validator and its functions.

 

Thank you for your helpful feedbacks,

Rudina

 

Like # people like this
0 votes
Rudina Aldubayan February 19, 2024

that's what I mean,

the status can change even if the assignee does not attach anything

but he can not change the status if he don't fill the Description and Do we send email? fields

 

 

Attachment.PNG

Reshma Begum {Appfire}
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.
February 19, 2024

Hi @Rudina Aldubayan ,

As @John Funk suggested, you need to remove any Field Required validators for those fields on the transition. It looks like you have the Fields Required validator from JSU for the Attachment field. Please remove the validator and verify!

Hope this helps!

Thanks

Reshma

Rudina Aldubayan February 19, 2024

Dear @Reshma Begum {Appfire} ,

Thank you for your kind support. I truly appreciate it!

In regards to @John Funk , I have replied to him and would appreciate it if you could take a look at my response.

Best regards,
Rudina

Suggest an answer

Log in or Sign up to answer