alfred-jira icon indicating copy to clipboard operation
alfred-jira copied to clipboard

Create an issue

Open steyep opened this issue 9 years ago • 15 comments

Add the ability to create a new issue for a project from the workflow.

steyep avatar Sep 15 '16 16:09 steyep

This would be my number one feature request! 👍

otherguy avatar May 18 '17 08:05 otherguy

Is there anything I can do to help with this issue? The ability to brain dump issues quickly would be wonderful. Thanks for all your work- the workflow is amazing (a web app to change settings? seamless download of icons?! wow)

andrewgiessel avatar Oct 05 '17 13:10 andrewgiessel

@andrewgiessel, thanks for the kind words. I'm glad you're finding the workflow useful. Unfortunately, I've been a little swamped at work lately and haven't been able to focus on coming up with a good implementation of this feature. If you have something in mind, definitely submit a pull request!

steyep avatar Oct 05 '17 16:10 steyep

Where would I start in the codebase? Is there a JIRA API page? Is there an example command to base this on? On Thu, Oct 5, 2017 at 12:28 Stephen Pennell [email protected] wrote:

@andrewgiessel https://github.com/andrewgiessel, thanks for the kind words. I'm glad you're finding the workflow useful. Unfortunately, I've been a little swamped at work lately and haven't been able to focus on coming up with a good implementation of this feature. If you have something in mind, definitely submit a pull request!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/steyep/alfred-jira/issues/1#issuecomment-334519442, or mute the thread https://github.com/notifications/unsubscribe-auth/ABG3JeYCt2O6lIzOKwCSn0asKlJUaRxaks5spQO8gaJpZM4J-E2U .

andrewgiessel avatar Oct 05 '17 20:10 andrewgiessel

I've pushed this feature to the feature/1-create-issue branch if you're interested in checking it out/giving me your feedback. Make sure to checkout the updates to the README.md for more info. Demo below: create

steyep avatar Oct 07 '17 00:10 steyep

Just tried it. Had to make one change to get it to work

line 96 lib/create.js

let assignee = (users.find(user => user.username == issueConfig.assignee) || { name: '' }).name;

justinffs avatar Jan 15 '18 21:01 justinffs

Nice catch @justinffs! Could you PR your change into feature/1-create-issue?

steyep avatar Jan 16 '18 14:01 steyep

@steyep I've pushed @justinffs feedback to a branch and opened a PR to feature/1-create-issue #100

Issue Type

One thing I just noticed on the new Jira cloud (I have not tested on old Jira) is that settings isn't pulling in the list of issue types

image

They do appear when creating the issue

image

Is there a way I can store this preference by hand?

Reporter

It looks like reporter is now required

image

timbroder avatar Jan 29 '19 14:01 timbroder

@timbroder the issue type / reporter should be pulled from your settings file (~/.alfred-jira/.config). The simplest thing to do would be to make a backup of that file, logout of the workflow and then log back in. That will force a refresh of all that data.

steyep avatar Jan 29 '19 22:01 steyep

What should the keys be for that?

This is all that's in the create section

    "create_issue_defaults": {
      "assignee": "admin",
      "project": "WAVE"
    }

timbroder avatar Jan 30 '19 14:01 timbroder

Sorry, @timbroder, it's been a while since I looked at this codebase and I was incorrect about how that data is being generated. The data returned by jira ► create ► issuetype uses the project as context whereas the list of issue types generated by the Angular app does not pass a project parameter. The two methods make requests to different endpoints. The app uses the rest/api/2/issuetype endpoint. Do you get results back from ${ your jira url }/rest/api/2/issuetype? You could also try to switch the API version to 3.

The issue's reporter should be defined as the user who is logged into the workflow (the user key in the ~/.alfred-jira/config.json file). https://github.com/steyep/alfred-jira/blob/feature/1-create-issue/lib/jira/create.js#L65

steyep avatar Jan 31 '19 18:01 steyep

is this working?

nschurmann avatar May 09 '19 22:05 nschurmann

@steyep any plan to merge into master?

JimmyLv avatar Feb 29 '20 12:02 JimmyLv

Hah yeah, I thought did. I guess I forgot 🤦‍♂

steyep avatar Mar 01 '20 03:03 steyep

This does not work for me; when I select 'Create Issue', it just falls out of the Jira workflow and opens a Google Search for that. image

vbabenkoru avatar Apr 28 '20 19:04 vbabenkoru