How to lock issue status changes until the time tracking field is filled?
Reporter create a task and assign Assignee_1
Assignee_1 did some work
Assignee_1 want to change Issue Status for transition it to other step
Assignee_1 cannot change the issue status until he / she fills in the time tracking field
Assigne_1 fills in the time tracking field
Assignee_1 can change the issue status
Hi @Dmytro Shaforost and welcome to the community,
I don't think that's really possible, there will be too many variables and it will become really complex.
Have you considered allowing the transition but adding a transition screen which contain the time tracking field?
It won't be locked to move but you will force the user to enter time during the transition.
Well it depends on how much you know already about Jira :)
When you edit the workflow you can click on the transtion and attach a screen to it.
That screen will need to be created in advance and you'll have to add the field "Time Tracking" to it.
You could then add a validator on the transition with one of these validators:
You mean you can't edit the workflow or you don't see these specific validators?
If the workflow is not shared you should be able to change it as a non-admin (but a project admin I believe).
If it is the simplified system workflow you might have less options.
@Dirk Ronsmans HI! Now I have project administrator rights and I can follow your recommendations.
1. I added a new screen with one field: time tracking. I have added a minimal description to the screen.
2. I added this screen to the transition.
3. then assigned a validator for the required field and selected the "time spent" field from the list.
4. created a task and selected the desired transition. nothing happened. What have I done wrong ?
Hi @Dmytro Shaforost ,
Just to confirm, are you now using a Team Managed project or did you switch to a Company managed one?
You mention nothing happens, does the screen not even pop up? Cause then you might need to publish the workflow still (it might still be in draft, if you didn't do that)
I've just did the test myself.
To rectify, you need to add the field "Log Work" on the transition screen and not the Time Tracking one. (i even had to remove Time tracking to make Log work appear).
I also added a validator for the Time Spent field and I am block on the transition unless I enter time..
When I try to move forward without entering I get the following:
I've created a simple screen:
Added that to a transition:
and a validator:
just make sure to edit the correct workflow of course, the one linked to your issue type.
@Dirk Ronsmans you're the best!!! Thanks a lot for your answers and HELP! This is exactly what I needed! Thanks to you and your instructions, everything works for me! Didn't work up to this point since I didn't publish the draft. Thanks again for your help!
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events