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

This widget could not be displayed.

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.

This widget could not be displayed.

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?

 

This widget could not be displayed.

Thank you Jacob. I will try it out.

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

112 views 2 0
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