Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,979
Community Members
 
Community Events
168
Community Groups

JMWE: attachment field mandatory

Hi Community,

is this even possible?

When moving from the "open" status to the "in analysis" status, the attachment field should be mandatory, but if at least one has already been added during the "create" process, then no additional entry in this field is required.

 

Best regards

Jurica Petricevic

2 answers

1 accepted

2 votes
Answer accepted

Hi @Jurica Petricevic 

you can use a "Scripted (Groovy)" Validator with this code:

issue.get("attachment") || getTransitionAttachments()

This requires JMWE 7.0.0 or higher.

Or you can use a Fields Required Validator (JMWE app) and use this Conditional Validation script:

!issue.get("attachment")

Hello @Jurica Petricevic

you can try to add a new validator to your workflow that requires "Attachment" field not to be emptyBez tytułu.png. To do such a thing, go to the "Workflows", "Edit" and then select that transition from "Open" to "In analysis" status and follow this screen:

@Marcin Wiktor thx for you time first of all.

Secondly, this does not solve my second part of the problem, where if there is already an attachment, the system ignores this field and releases the transition.

Bild 1.JPGBild 2.JPG

Suggest an answer

Log in or Sign up to answer