workflow based on customized field

Hi Team,

The scenario is the user need to fill a form and if the form is approved by other user(admin) a particular state in the workflow should start.The form need fields like to upload certain documents and approve or reject button. If admin approve the workflow should start else it should abort.

How do i implement this in Jira. Is there any plugin? Need help

 

Thanks in advance

1 answer

1 vote
Alexey Matveev Community Champion Jan 09, 2018

Hello,

You could create two transitions which would lead from a status, where you want to make the decision on continuing with the workflow or not, to the same status. One transition would be called Approve and another one Reject. You could add a screen with attachements to the transitions. These transitions would be available to the users who can make the decision(out of the box functionality). Then you could use an add-on to autotransition the issue to the required status depending if the issue was approved or rejected. You would need an add-on for it. For example, Power Scripts or Adaptivist Scriptrunner.

If you use Power Scripts then there is a routine called autotranistion which would let you do autotransition. You can find more info here

https://confluence.cprime.io/display/SIL/autotransition

Script Runner also has fast-track transitions, where you can build the conditions without coding.

Thankyou.. am clear with the transition part. Is there any option where I can create a form page with my company logo etc. and link it to jira workflow?

Alexey Matveev Community Champion Jan 22, 2018

You can not link a custom form to a workflow transition. But you can create a button near the workflow transitions and use the button. But you would need to update issue fields and transition the issue in your code. Also you would need to paint all issue fields in the form by yourself and it is not a trivial task.

Such buttons are called web-items. You can read more here

https://scriptrunner.adaptavist.com/latest/jira/fragments/WebItem.html#_dialogs_advanced

1.can a screen lead to two transitions. like i have an initiate transition which has a screen "testscreen" . I have added the "testscreen" to two more transition like "accept"  and "reject". so when i click on initiate button  "testscreen"  pops up which has only initiate button, is there a way where if i click "initiate" the "testscreen" must have accept and reject button as well along with initiate button.

2. Say i add drop-down field in screen. based on the item i choose from drop-down the fields in the screen should change based on my customization.

 

Thanks in advance!!

Alexey Matveev Community Champion Jan 30, 2018

I think it would be too much work to do. You should not change Jira UI that much.

yeah :( :( but..is point 2 at least possible?

Alexey Matveev Community Champion Jan 30, 2018

It is possible but you d better use Power Scripts Live Fields or Adaptivist Scriptrunner behaviour otherwise you would need to write javascript code.

1) No.  A transition can be reused, but by definition only has one end-point status and one screen.  What you're trying to do there is add pointless complexity for the end user - they have to click to start, then choose which transition to use.  It is easier to simply offer both transitions to them immediately on view.

2) The fields on a screen are determined by the screen, which is selected by the issue type for create, edit and view, and by the transition if you go through a screen on a transition.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,387 views 17 10
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