I'm wondering,
How to check condition in the post function by script runner script :
Is an attachment was added from transition screen or not?
I'm working on add the condition in my code. The idea is check if attachment was added in transition screen. My script placed in post function
Is it possible to grab files attached on transition screen by Scriptrunner custom script in post function?
The add attachment is not mandatory action.
Hi there,
Apparently you can achieve this by going through the modified fields in the postfunction.
These articles should get you on your way
Hope this helps!
Jeroen
Thank you for your suggestion.
I'm afraid this way doesn't fit me because
The aim is check attch adding action in the post function
Is it possible to grab files attached on transition screen by Scriptrunner custom script in post function?
when adding attachment is not mandatory action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the first link (further in the comments) describes just that, checking the files added in the transition, on the transition screen.
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Unfortunately, It doesn't work in post function.
The code works well as validator in Validation of transition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Euuu ;) Thank a lot for you help.
The suggested approach works well for me.
I've move my script to Validation of transition from Post function. It was so easy.
Thanks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One more things. Do you know is it possible to get Attachments from Validator?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I'm not sure but since the attachments are already on the issue when the Validator tiggers, I think you can just use the attachmentManager service. This article should get you started (the code in the question, not the answer :-)):
Jeroen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.