Forums

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

Block to edit Due Date

Rodrigo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 11, 2022

I created some projects (Kanban), and i need to block edit Due Date by users.
Only edit by managers.

Users need to fill in the field on the task opening form, but should not edit it after opening it.

Can someone help me?

2 answers

1 accepted

1 vote
Answer accepted
Rik de Valk _Brainboss_
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 Champions.
August 11, 2022

Hi @Rodrigo ,

If you have ScriptRunner, you could set up a behavior for that. If not:

You will need to keep the Due date field on the Issue Create screen, but remove it from the Edit Issue screen. 

That prevents any user from editing the Due date field. 

Next you need to enable managers to edit the field. You can do this with the workflowin combination with a screen. 

First you create a simple screen with only the Due date on it. 

Then you edit the workflow and create a transition from Any status to Itself. This is a special transition that doesn't actually change the status. You associate your new screen to it. And then you set a condition that checks if the user is part of the manager role.

Hope that makes sense!

Rodrigo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 11, 2022

It's works. Thanks!

Like Rik de Valk _Brainboss_ likes this
Sinisa Glusac
Contributor
January 18, 2023

Hi @Rik de Valk _Brainboss_ , I have similar issue here, I want to protect DueDate field from editing. The field should be visible on Create Issue Screen, but it shouldn't be available for editing once the ticket is created. For my case, no one should be able to edit DueDate after ticket is created.

Could you, please, help me and be more specific on how to do it here:

You will need to keep the Due date field on the Issue Create screen, but remove it from the Edit Issue screen. 

because I cannot find Edit issue screen. Thank you in advance. 

Sinisa Glusac
Contributor
January 23, 2023

Please ignore, I found it and it's done now. Thank you for suggestion. 

Jay Brown
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 2, 2023

@Rik de Valk _Brainboss_ how would it be possible to script runner? 

Also in my situation, I would would like the be able to create a task with no due date, assign it to the developer and only restrict changing the due date after it has been set by the developer

0 votes
Ram Kumar
April 28, 2023

Hi @Rik de Valk - We are using Team based project, when we use Script Runner Behaviour and under projects it shows only Company Based Project. It won't support for Team based project?

 

Also @Sinisa Glusac if you can share the idea which made it work, will be much helpful. Thanks.

Suggest an answer

Log in or Sign up to answer