cancel
Showing results for 
Search instead for 
Did you mean: 

Auto trigger of attachment on status change

Former Member
0 Kudos

Hello Folks,

I have the following requirement.

In a normal change, on change to a particular status, say(Set to In Development) the action behind 'Add Attachment' button must be triggered and the attachment uploaded has to be reflected in the 'Attachments' section.

Is there a way to get this done.

Thanks,

Greg

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In short, I must make attachments mandatory for specific statuses.

dillipkumar_r
Participant
0 Kudos

Hi Greg,

Your requirement can be achieved by means of consistency checks in charm. needs a custom check to be developed.

There is a nice blog with exactly matching your requirements, did u see this yet ?

Regards,

Dillip

Former Member
0 Kudos

Hello Dilip,

Thanks for the document.....I will try implementing it and will get back if I need further help.

But I am confused how to check if a particular document is attached. Should a document type be configured for each document....like doc type TS for Technical Spec, FS for Functional Spec, UT for unit test doc.

Do you have any idea about this.

Thanks,

Greg

dillipkumar_r
Participant
0 Kudos

Hello Greg,

I am not sure of how this can be achieved.

It would be great if you can share the details when you have achieved this.

Thanks

Dillip

Former Member
0 Kudos

Hello Dillip,

I did it with the attached piece of code in the badi mentioned in your post.

I set a naming standard for the documents such that it ends with FS.DOC or TS.DOC or UT.DOC and based the status, check if that particular document is uploaded for the corresponding status.

Clearing the parameter CONDITIONS_OK of the method will trigger the consistency check.

Thanks for your help.

Regards,

Greg

Answers (0)