Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change Status when creating an issue

When creating an issue I'd like to be able to edit starting Status so that I don't need to create an issue and then change status as a two-step process (which is slower). How can I achieve this?

Context: In our project, most of the issues that are created go to the backlog (workflow starts with status "New" which isn't shown in boards), but we also frequently create issues which should go to the board directly (status "Ready for development").

7 answers

2 accepted

People arriving to this place after googling, please go to the above ticket and "vote" for it (top right corner).

2 votes
Answer accepted

It's not possible out of the box.

For my instance I have a listener that checks for a customfield value. If this customfield value (auto-close ticket) is present, the listener automatically fires the Close Issue transition.

It sounds like you'd want something similar. 

Hi guys!
Found a workaround that's could be useful not only for me:
1. Create a checkbox custom field with the name 'Set the status' (or other) with option (e.g status Selected for development) and add it to the issue view.
You will see it on your 'create issue' window.
set-the-status.png

Actually you could make as many statuses as you want.

2. Create an trigger with condition and action in Jira Automation (it's free):
When: Issue created -> 
If: Set the status is not empty (different if you created many statuses)
Then: Transition the status to 'Selected for development'


issue-automation.png

That's all, now if you select the status while the issue creation it will be automatically change the status.

But anyway hope that Jira developers will focus on that issue soon.

I used the same field, but a different automation rule. The results are the same.

Screenshot_17.jpg

Like # people like this

How did you create the custom checkbox?

Confirmed that this works as described!

@Sarah Reed you can create the custom fields by clicking the gear icon in the top right, going to "Issues" under "Jira Settings" and then looking for "Custom Fields" in the left side-bar.

This needs to be added as an option.  It's just a headache.   These aren't solutions.  They are work arounds,

It's not really that complicated. Jira does not treat the Workflow/Status as a field. It's a complex arrangement of states, actions, conditions, validations, and other properties. Just 'setting' the status makes no sense whatsoever. 

You should look into IssueService and the Workflow XML. It's pretty clear that the underlying Workflow Engine (OS Workflow) accepts and supports an Initial Action, which clearly Atlassian has mirrored into their model: https://docs.atlassian.com/software/jira/docs/api/latest/com/atlassian/jira/bc/issue/IssueService.html

For instance: 

create(ApplicationUser user, IssueService.CreateValidationResult createValidationResult, String initialWorkflowActionName)

The IssueService::create method clearly has an argument `initialWorkflowActionName`. Presumably there's a method of modifying the Workflow XML to pass in this initialWorkflowActionName somehow. I would imagine that would give you what you're looking for, but that's just a guess on my part. 

not be complicated + a bunch of XML + a create() function is an oxymoron :)

 

I want to be able to create some tickets to go straight to the backlog, and other tickets to go straight into my "selected for development" column when I create that ticket. This is a UX problem and not a technical one. 

Like # people like this

This reply has been deleted.

Shawn, I don't think this question has anything to do with your issue.

2 votes

Exactly as @Steven Behnke said. With Jira Service Desk you can use Automation to accomplish this.

Well @Michael J Love gave an obvious idea. You can make the transition available, but only use the transition that jump statuses when you need it!

You could also use a condition in that transition that avoid mistakes.

I edited my workflow so that the first status upon creation is "Backlog". 

You need to copy your existing workflow. Edit it, and then assign the scheme to the issue types.  

It will ask you to map statuses on any existing issues that use the status that is no longer in your workflow.

I "fixed" this issue by changing my Jira usage habits. When I need to create new issue and start working on it instantly - I do following

  • add new issue
  • click on "popup message" and open issue page
  • set status to "In progress"

That's pretty logical, because I don't need to create few "In progress" issues and I need to open issue page anyway in order to add comments to it about progress etc.

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