No longer able to attach files on closed issues in 6.4

Susan Hauth Community Champion Jul 29, 2015

We just upgraded from JIRA 6.1.3 to 6.4.7.  In one of my workflows, I set it up so that users can only edit certain fields and add attachments after the issue is closed.  I have jira.issue.editable = false on the Closed status.  I have workflow transitions "Edit Fields" and "Attach" that control that behaviour by limiting the fields to be edited. 

Prior to the upgrade these worked just fine.  After the upgrade, the "Edit Fields" workflow step works just fine using a transition screen with the limited fields that can be edited.  However the "attach" no longer works.  The attachment field will be displayed and it allows you to select the file.  But when you select "attach" to process the workflow transition it just returns silently to the screen.  It does not attach the file and does not give a user a warning.  In the log file you get a WARN:

2015-07-29 20:14:37,214 http-bio-8080-exec-15376 WARN shauth 1214x1053858x4 x2da7x 10.9.30.110 /secure/CommentAssignIssue.jspa [jira.issue.fields.AttachmentSystemField] There were errors while converting temporary attachments: AttachmentError{logMessage='An error occurred: You can not create attachments as the issue is in a non-editable workflow state.', localizedMessage='You can not create attachments as the issue is in a non-editable workflow state.', filename='', reason=VALIDATION_FAILED, exception=none()}

I'm looking for a workaround and also an understanding of why this no longer works in JIRA 6.4

3 answers

1 accepted

1 vote
Andy Nguyen Atlassian Team Jul 30, 2015

Hi Susan & Robert,

The warning message attached points me to this Bug: Cannot add attachments when closing issues

It was unfortunately introduced in JIRA 6.4.x sad

you can use another step property:

key: jira.permission.edit.group

value: none (or just another text - not matching any group). If you put for example jira-administrators instead of "none", only members of jira-administrators will be able to edit the issue in this particular step (of course if allowed in permission scheme).

 

This also causes that "attach" options are still available in "More actions" menu.

 

Regards,

Robert

Susan Hauth Community Champion Jul 30, 2015

Hi, I tried that and it still did not work. 2015-07-30 18:48:10,459 http-bio-8080-exec-19510 WARN shauth 1128x1414591x4 ismq4e 10.9.30.109 /secure/CommentAssignIssue.jspa [jira.issue.fields.AttachmentSystemField] There were errors while converting temporary attachments: AttachmentError{logMessage='An error occurred: You can not create attachments as the issue is in a non-editable workflow state.', localizedMessage='You can not create attachments as the issue is in a non-editable workflow state.', filename='', reason=VALIDATION_FAILED, exception=none()} :-(

Susan, Can you please paste your workflow step properties here?

Susan Hauth Community Champion Jul 30, 2015

See below for the transition property. I think I found a workaround. I changed the workflow to go back to Open and then fast track back to close. So while it's "open" I can attach a file and then the post workflow transition sends it to Close. It's just so strange that I can edit fields using a workflow transition while the issue is closed without any properties on the transition. And it works for all the fields EXCEPT the attachments. It's also strange as this was not a problem prior to the upgrade. Thanks Robert

Thanks for the suggestion with property key: jira.permission.edit.group. This is working for us.

0 vote
Susan Hauth Community Champion Jul 30, 2015

Transition Property.PNG

It's TRANSITION property, NOT STEP property. Please put it to STEP property :)

Susan Hauth Community Champion Jul 30, 2015

But I don't want it in the step property. Because I don't want these fields to be editable except under certain conditions (parent statuses) and only by the reporter.

So, add conditions to your transition and property to step. transition properties work in another way

Susan Hauth Community Champion Jul 30, 2015

I do have conditions on the transitions and properties on that step. The problem was that prior to JIRA 6.4.7 I was able to use a workflow transition to open up the attachments,allow an attachment and close. And it worked fine. Now it doesn't and I did not make any changes to this workflow post upgrade.

So, they fixed it in 6.4. Simply replace your old step property with the new one. Do not change any other options

Susan Hauth Community Champion Jul 30, 2015

IMHO I think they broke something in JIRA 6.4.

I can't get this to work on 6.4.11 ... I am in the Edit Closed Group but Attachments field is missing on edit screen and in MORE dropdown.

 

Edit-Allowed-Group.PNG

You still need the permission to attach files in the project.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,319 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot