Forums

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

Automation fails to update Actual End date when jira.issue.editable is set to false

Dinesh Balakrishnan February 15, 2023

I'm try to lock all the fields when the status of the CR is transitioned to CLOSED.

I'm using Automation rule to update the Actual End date, but it fails with the below details.

 

Unknown fields set during edit; they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -
Actual end (customfield_13547)
No fields or field values to edit for issues (could be due to some field values not existing in a given project):
I check all the fields configuration, and everything looks right. 
Can u help me 

1 answer

0 votes
Nic Brough -Adaptavist-
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.
February 15, 2023

I think I know what this is, but I do not want to bore you with it until I am sure.

Can you confirm:

As a user,  can you go into an issue in a status before Closed, and 

  • see "actual end" is on screen
  • edit the fields
  • transition to closed
  • Does it pop up a transition screen? 
    • If so, is "actual end" on it?
  • Now it is in Closed
    • does "actual end" exist there?
    • can you edit it?
Dinesh Balakrishnan February 15, 2023

Thanks Nic for your response.

I see the actual end (EMPTY) in the Issue screen before "CLOSED" status. I have put an automation that if transitioned from "COMPELTED" to "CLOSED" then Actual End date is populated. if I set the jira property jira.issue.editable=false, then it fails and the Actual End Date disappears from the Issue Screen.

Nic Brough -Adaptavist-
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.
February 16, 2023

Yes, I understand what you are doing.

I need you to tell me what is actually happening, step by step, as I asked before.

Dinesh Balakrishnan February 16, 2023

Step 1 : Transitioning from "Awaiting implementation" to Implementing -> 

Actual Start gets update to now() by the Jira Automation. jira.issue.editable is not set here. All good here. Actual Start (Has a value)  & Actual End (null) visible on the Issue screen.

Step 2 : Transitioning from "Implementing " to Completed ->

Note : jira.issue.editable is set to false. Automation is in place to update the Actual End date.

Actual Start has a value and Actual End date disappears from the Issue Screen. While checking the Audit log, I found the above error.

Nic Brough -Adaptavist-
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.
February 17, 2023

I thought this was the case.

Your automation is trying to edit an uneditable issue.  Automations happen after transitions, so your Automation is trying to update an issue in "completed (and hence un-editable)" state.

You either need to provide an exemption to the "cannot edit in this status" workflow property, or move the automation into a post-function so that it updates the data during the transition, before the issue becomes uneditable.

Dinesh Balakrishnan February 17, 2023

Can u help me with the "cannot edit in this status" workflow property, that can be used as an exemption.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events