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

This widget could not be displayed.
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

This widget could not be displayed.

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.

This widget could not be displayed.
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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

290 views 5 0
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