Forums

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

Cannot modify an existing workflow as jira admin

Iro Karavasili
Contributor
January 7, 2019

Hello all!

I'm facing an issue when T try to modify an existing workflow in Jira.
I'm logging in as jira administrator.
I choose the Project with the workflow I need to modify and choose the workflow.

When I add a new step (e.g "to Do") here:

 1.png

I get:

2.png

 

In this workflow all steps follow the same transitions. New step automatically has the same transitions. Plus, when I try to edit the transition, I get:

3.png

Thanks in advance,
Iro

3 answers

2 accepted

1 vote
Answer accepted
Iro Karavasili
Contributor
February 11, 2019

Hi I have an extra question.
I have added a validator to the transition: Open -> Blocked:
Fields Required (JSU)

  • Required fields:
    • Comment

When I execute the transition I get the error:

Comment is required.

It seems that you have tried to perform an illegal workflow operation.

If you think this message is wrong, please contact your JIRA administrators.

What I want is when I try the transition to get this:
t.png
Thanks

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2019

I don't understand.  You want to not tell the user why they can't do something?  That's never something i'd recommend!  But I think I don't understand the question.

Iro Karavasili
Contributor
February 12, 2019

Hi @Nic Brough -Adaptavist-,

Maybe my request wasn't clear.
Here is what I need:
When I move from open to blocked, I need a window to pop-up (the last picture I sent) that asks for a comment.
Now, when I try to execute this transition i get this error message:

"Comment is required.

It seems that you have tried to perform an illegal workflow operation.

If you think this message is wrong, please contact your JIRA administrators."

Thank you!

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2019

Ok, from my standard copy-and-paste for transition validator and screen:

  • one of your admins has placed a "validator" on the transition that makes the comment required during the transition
  • one of your admins has removed the transition screen from the transition (probably a different admin), or the workflow was designed without one

In your question, you've stated the first line applies, and I now understand it properly.  Thank you for clearing it up for me, I was struggling (think I was having a bad day).

It's the second one we should fix here.  Go to Admin -> Issues -> Screens and add a new screen.  You don't need to put any fields on it at all, although to match your screenshot, you should add "Assignee".  Give it a name like "assign and comment"

Now edit the workflow, find the transition and add the screen to it!

Like # people like this
Iro Karavasili
Contributor
February 27, 2019

Thank you @Nic Brough -Adaptavist- ! Adding a screen was the solution! :) :)

0 votes
Answer accepted
David Hazeel
Contributor
January 7, 2019

In order to make your changes you'll need to create a copy of the workflow you want to edit first. You can them make the amends and make this new workflow active and delete the old one. When you make the new workflow active you can map tickets to/from and new/old statuses.

There isn't any other workaround that I'm aware of. I've seen some discussion about this in the past (although I can't find it to link you to it unfortunately).

Hope this helps.

Iro Karavasili
Contributor
January 7, 2019

@David Hazeel thank you for the answer.
I've made a copy of the workflow, but when I try to delete a transition 

of this one, for instance:

1.png

I am not able to delete all the transitions I need. I only get the transition I've just added:

2.png

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 7, 2019

The other transitions are listed in italics in the text view of the workflow because they are shared transitions.

That type of transition can only be edited from the diagram view of the workflow (or the raw xml)

Like # people like this
Iro Karavasili
Contributor
January 7, 2019

@Nic Brough -Adaptavist- thank you, I hadn't realized it..!

0 votes
Iro Karavasili
Contributor
January 22, 2019

Hi again!


I created the new steps and transitions from the diagram view.
Then how can I modify post functions?
Some of them are created automatically and it is not permitted to change them.
For example, I'm getting these post functions:

1.png

But I want these:

2.png


Thanks in advance,
Iro

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 22, 2019

Actually, only line 1 in the second screenshot is different.  On most transitions you need the 5 standard post-functions that the system adds for you (the exception is "create") - set status, comment, history, re-index, fire event.

To add the resolution function on the first line, go back to "edit" mode for the workflow and then back to the list of post-functions.  Look to the right of the "the following will be processed", and hover the cursor, an icon for "add post-function" should appear.

Iro Karavasili
Contributor
February 9, 2019

Thank you @Nic Brough -Adaptavist- !!

Suggest an answer

Log in or Sign up to answer