Forums

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

How to allow attachments only during a transition?

Sascha Ziemann
Contributor
October 14, 2020

I tried the following work around:

https://confluence.atlassian.com/jirakb/how-to-only-allow-certain-fields-to-be-editable-depending-on-status-729482680.html

This works for normal custom fields but does not seem to work for attachments.

I get the error, that I can not add an attachment during a transition, because the issue is read only.

How to work around the work around?

 

3 answers

0 votes
Sascha Ziemann
Contributor
October 15, 2020

I use now the following add-on: Attach File Manager for Jira

https://marketplace.atlassian.com/apps/1220708/attach-file-manager-for-jira?hosting=server&tab=overview

An attachment to an Attach File Manager custom field behaves the same way as all other custom fields and can be modified in a transition screen although the issue is not editable.

0 votes
John Funk
Community Champion
October 15, 2020

Hi Sascha,

Have tried to create a Transition screen with the Attachment field on the screen? (And remove the Attachment field from the Create and Edit screens, but leave in the View screen). Not sure that will work, but it might be something to try.

0 votes
Nir Haimov
Community Champion
October 14, 2020

Hi @Sascha Ziemann 

Basically you can't, there is no such option in Jira, and there is no plugin as far as i know that does that.

If you know JavaScript you can write something that remove the "add attachment" option for the issue screen or any edit option available in the system, and then make it available in the transition screen.

But i wouldn't suggest you doing it, as it's a lot of work to catch all the places and cases where to block the attachment with JS, and if you are not a deep familiar with Jira, you will probably miss some places and users will still be able to upload attachment not from the transition screen.

So i suggest you to leave it as it is.

Sascha Ziemann
Contributor
October 15, 2020

It is not possible to change jira.issue.editable with Groovy?

Nir Haimov
Community Champion
October 15, 2020

not for attachments

Suggest an answer

Log in or Sign up to answer