Is there a way to attach file automatically in create issue screen?

Rajeswari Thangavel August 16, 2019

We have one attachment file with some screenshot that needs to be added into create issue screen automatically for the user to refer the file to fill one field.

Is there any way to achieve this using script runner?

2 answers

0 votes
Matthew Clark
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.
August 16, 2019

Hi Rajeswari

You might find this community post here can help achieve this with Scriptrunner.

Rajeswari Thangavel August 19, 2019

Hello @Matthew Clark 

Looks-like this article is to attach a file after issue creation. We wanted to add attachment in the create issue screen itself. Is there any other way to do this?

Matthew Clark
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.
August 19, 2019

Where would this attachment be displayed when added on the create screen?

How would the user interact with it?

Even if you add an attachment within the create screen while it is being filled in, it remains as a small thumbnail unless you embed it in your Description, so are you trying to automatically add an attachment and then embed it into the description?

Could you use something like scriptrunners behaviours or scriptrunners validators to check the form's values before allowing it to be submitted?

Would setting help text on the field with the behaviours setHelpText method as documented here provide enough guidance for the user?

Rajeswari Thangavel August 20, 2019

@Matthew Clark 

We have a field called "Gadget Type" which has values from 1 to 6. Each numbers here refers one template snapshot. We need to add a file with all these 6 snapshots to let the reporter to refer the file and select one template among them. This has to be done while filling create issue screen.

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 16, 2019

I don’t know of any wot accomplish this. Consider that if you could use Post Function it would be to late as you want the person to reference it on the Create screen. I would search the Marketplace for this. That said maybe you could accomplish the goal without an attachment, I.e. with a well formed creat screen and field descriptions.

maybe others have a better answer fo you.

Suggest an answer

Log in or Sign up to answer