Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Difficulties setting the validator of a field to see if modified during transition

Anand Vardhan
Contributor
May 16, 2019

Hey Guys,

 

I've had difficulty setting the validation for if field value is modified during a transition. What've done so far is, added a validator from QA to Sign Off wherein if time spent is where I've added my validation i.e from transitioning to QA  to Sign Off time spent should be entered/updated. I get the alert if the time spent is not updated. However, I'm still getting the alert even if the time spent is entered in this transition. I tried adding screens too but that also didn't work.

 

Any possible solutions for me?

2 answers

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 20, 2019

Hi Anand,

I tried to recreate your validator problem here.  Something I noticed here, you can set a validator on the system field called 'Time Spent', however on the transition screen you will need to make sure that you add the system field called 'Work Log' in order to make this 'modify field value validator' functional. 

With most other fields in Jira the name of the field is the same in both validator and screen, but for the sake of time spent, this is being measured off the Jira work logs.  Furthermore, in this case you would have to place this Work Log field on a transition screen.  A transition screen is the only way that this validator could work properly to allow users to enter/change a value when the issue is transitioned.

I hope this helps.

Andy

Anand Vardhan
Contributor
May 21, 2019

Thanks, Andrew.

 

I'll test it out and confirm!

Anand Vardhan
Contributor
May 22, 2019

Hey Andrew,

 

It worked perfectly fine. I think the other mistake which i was doing is, under screens, i had added time tracking instead of log work.

 

Thanks a ton:)

Anand Vardhan
Contributor
May 22, 2019

Andrew,

 

Would you be able to help me out with Automation rules?

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2019

You're welcome.  Happy to help out.

Regarding your questions about automation:

It would depend on how you are doing automation.  Jira Service Desk does have some level of built in automation that I might be able to answer questions about.

However if you're referring to a plugin such as Automation for Jira or alike, well, I'm less well versed in supporting that particular plugin and its syntax.

But either way, I'd recommend creating a new question here in Community since this sounds like a different topic, and tagging it with the product(s) and the subject(s).  This way we can try to get your question in front of the users that have expertise in that topic.

Anand Vardhan
Contributor
May 22, 2019

Sure thing, Andrew!

 

Do you think it's possible to set a notification from workflows, triggers, conditions, etc.? I have set automation rules for original estimate but jira only allows 300 execution in a month and hence I'm looking for an alternative.

 

One more thing, in my workflow, a ticket is automatically transitioned from TO Do to In Progress  whenever a commit or pull request is made. If I add a validator the same as Time spent, would it stop the automatic transition from To Do to In Progress?

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 23, 2019

When a workflow transition is triggered automatically, it ignores any conditions, validators, or permissions configured on the transition.   This is documented in Understanding triggers: How triggers relate to other workflow operations/constraints.

I'm not sure I understand your other question in your previous reply.  But it sounds like it should probably be a separate question.

Anand Vardhan
Contributor
May 23, 2019

Thanks a lot:)

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 17, 2019

Hi Anand,

I wanted you to know that I moved this reply into its own question.  It just felt like it was different enough that it shouldn't be answered in the thread of the other post.

I understand that you are having a problem with a validator in your workflow.  However I'm unclear of the details here.  What field is using the QA and Sign Off values?  Could you post us a screenshot of your validator settings?  I might help us to better understand your specific environment and this situation to be able to offer more help here.

Thanks

Andy

Anand Vardhan
Contributor
May 19, 2019

Hey Andrew,

 

Thanks for the update!

 

I'm attaching two screenshots. One for the workflow and other for the validator. I've added the validator when the issue is being moved from QA to  Sign OffScreen Shot 2019-05-20 at 11.09.39 AM.pngScreen Shot 2019-05-20 at 11.10.18 AM.png

Suggest an answer

Log in or Sign up to answer