Zephyr for Jira - Can we restrict a user from editing executed test?

How can we Zephyr for Jira - Can we restrict a user from editing executed test? Would it be possible to create a new version for any executed tests and make changes only to the newer version of the test case? We are evaluating JIRA v6.3.9/Zephyr for JIRA 2.5.1.

 

4 answers

We work around this Zephyr limitation by using workflow permissions. First you have to have to configure Zephyr to show the workflow toolbar and assign an appropriate workflow to your Tests.

In our case our basic workflow is Open -> Under Review -> Active

Once a test is designed and moved to Active it is restricted from any editing. We do this by applying workflow properties on the "Active" status as follows:

jira.permission.create.user = denied
jira.permission.edit.user = denied

This technically means that only the username "denied" can edit the issue. Since we will never have a user with this name, it works for us. You may want to adjust if you somehow will use that username.

Zephyr checks for "Create" permission when you add Test steps and checks the "Edit" permission when you move, delete, or edit the steps. Now the "Create" permission is the odd one here: Since you are applying this to a workflow step, you are saying that you cannot create an issue when the issue is in this status. But since this is a workflow property it does not apply to normal issue creation. In essence it only impacts Zephyr as its the only thing that would check for "Create" permission within an issue context. Logically since the steps are part of the issue it would have made sense for Zephyr to use the "Edit" permission for everything, but that is not the case here.

Hope this helps.

To me that's one of the biggest questions to Zephyr currently. You can edit test definitions with the weirdest effects on the test execution reports:

  • Change a test step from do this to do that. Looking at the text execution is non sense now.
  • Remove a test definition step in between the sequence of steps. The results are now assigned to the wrong step, same if you add a step.

Basically that means: As soon as you've done a single test execution you should prevent to change the test definition, everything else breaks the laziest definitions of traceability.

Having the need to copy test definitions (I think they at least have a cloned from link) I would assume the whole system becomes unmanageable very soon.

So, I would second the question you've raised to Zephyr, how do you envision to use the plugin?

 

Thank you Jacob. I will try it out.

The above solution from Jacob works like a charm

Thanks a ton smile

It is so weird though that there is no straightforward permission, I tried the following earlier and  it did not work:

jira.issue.editable=false but did not work. It would prevent me from editing the issue itself but would allow to edit or create test steps. Adding the above two permissions nailed it.

Now, I am looking at how to prevent execution of tests that are not yet approved

Any suggestions on this will be appreciated

Cheers!

Any idea how to prevent execution of tests that are not yet approved ? I am looking for the same feature in Zephyr - can you help on the same how it can be implemented?

How to prevent execution of tests in Zephyr that are not yet approved

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,760 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot