In Create Issue screen i can see "Create" button. Is there any way by which i can add extra button ? If yes how can i do so, any docs to demonstrate this?
Extra Button.png
Not without some coding.
However, the question here though is probably more about what other button you'd want to create and why? If you're in an issue creation process, then "cancel" and "create" are pretty much the only useful options. If you could explain what you're trying to add, you might find one of us has a better approach that doesn't need hacking
Thanks Nic. Well i can explain you with the requirement. One of our partners who use JIRA extensively for issue tracking had this request. Requirement : The workflow what we designed has a flow like this . Create -> Draft -> Registered and so on So for some of them its annoying to use this type of transition as their task is not submitted directly once they have created an issue. They need to have this extra state as "Draft" . So they would want to bypass this Draft state. So one way what i thought was to have a checkbox which will check if its direct submission or a draft submission and depending on that a post function to fast track an issue. But they came up with another option of having a button. Existing "Create" button will work normally whereas another button "Direct" which will directly move the issue to Registered once it is created. So we want to maintain the same workflow with these transitions. Either Create->Submit->Registered or Create->Registered based on the need.
Thought it might be something like that. The requirement "add a button" is a huge understatement of what you want to do. It really is not that simple, as you also need to hack the entire workflow engine to enable a second create transition - Jira only has ONE create transition and that has ONE end point. Your initial solution can be done far more easily - get them to set a field for a fast-track transition listener to pick up. Another button means some serious hackery in the core of Jira.
Oh thanks Nic. I had to do the analysis of this implementation of adding an extra button. Now reading your comments i feel it would be better that i stick to my old solution of having a checkbox rather than a button due to the involved complexity.
why not have a mandatory field like checkbox and have the workflow (if possible) or a script running on the back end force the transition.
@[deleted] [Adaptavist] I do have a requirement in the create issue page.
In the create issue page i have created some CUSTOM DATE fields (END-DATE)and a duration field.I want to calculate the end-date custom field based on the start date and duration field provided by user while creating the issue.
Is there any way i can do this via a plugin.I am able to do this in the EDIT of an issue using a plugin , but don''t know how to get control over the CREATE-ISSUE PAGE and do the calculation via a plugin.
Any possible solution as much appreciated…Thanks in Advance.
This has nothing to do with the question or answers. But use a post-function on the create transition.
@Nic Brough -Adaptavist- Thanks for the input.
But can you please let me know how to use the post-function on the create transition, if any documentation available could be helpful or any code snippet.
Expecting some thing like this : When the create issue button is clicked, i want a method in the Servlet class to be invoked which which is availble in my pluggin - This method will calculate the end-date based on the start-date and duration field and save the data.
Please guide me with a possible approch
It looks like you're new here. Sign in or register to get started.