How to lock issue status changes until the time tracking field is filled?
For example:
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.
@Dirk Ronsmans I didn't even think about such a solution :) ! I am not too sophisticated in Jira administration and automation. I like your solution to my problem, I will be grateful if you tell me how to implement it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Huh... can't find this function in workflow editing :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't see these specific validators...
so, as i understand: i need to create new project with Company-managed project type or already have such project and havea project admin permissions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah maybe I missed it.. do u use a tea managed or company managed project? Cause that changes a lot :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now i use team-management to create test-project env.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.