Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,826
Community Members
 
Community Events
165
Community Groups

How to set the issue can be created only when the version number is V1?

In workflow conversion verifier settings, how can a field be restricted to a fixed specified value before conversion is performed? Otherwise, conversion cannot be performed? For example, you can create a bug only when the version number is V1.

1 answer

1 accepted

1 vote
Answer accepted

Hi @liusu ,

You can do it by adding Regular Expression Check validator for Create Step in your workflow.

i.e. From admin menu --> Issues --> Workflow
Edit the required workflow in diagram mode and click on Create trnasition

image.png
Add validator "Regular Expression Check", select your field in "Field to validate:" and add value of your version in "Regular expression:" text box. 

Publish the workflow.

Below screenshot is an example where it check if Severity is sev-1 or not. 

image.png

Thank you very much for your answer, but there is no "regular expression check" in my verifier. What should I do? Is there any other verifier that can be replaced?

Hi @liusu ,

Regular expression check is a in-built validator in Jira Cloud. 

1. Are you using Jira cloud instance or  Server/Data Centre ?

2. If Jira cloud, this validator is available only in company managed projects, not in team managed projects

3. In team managed project workflow, you have "Check an Issues field" rule, but its not present for Create transition. Available only from next transitions. 

I used the server. Finally, I found that there was a verifier similar to the function you recommended. Thank you, rilwan Ahmed

@liusu 
You had selected cloud in your tags. So had to suggest cloud options. 
Glad that you could find a solution. Please accept the answer if it resolved your query.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you