-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Issue is not linked to Epic. #282
Comments
Hi @hugoamvieira, to confirm you are using |
Hey @ankitpokhrel - Nope, it's a As per the config:
|
Are you able to set epic using jira epic add? Attaching issue on creation seem to be working fine in my setup (cloud) so I might need some extra details to debug. Is this epic shown when you try to add it from the UI ? |
Yep. Hadn't tried this but it works like a charm - I created a test Story and added it to an Epic and it worked great :)
Yep - I can set the epic in Jira's UI just fine. |
@hugoamvieira this can only happen if the config doesn't have value for |
@ankitpokhrel Yep - You're correct. |
curl --request GET \
--url 'https://<HOST>.atlassian.net/rest/api/2/issue/createmeta?projectKeys=<KEY>&expand=projects.issuetypes.fields' \
--user "<USER>:$JIRA_API_TOKEN" > createmeta.json In the response:
|
Hey @ankitpokhrel - So I found the This custom field is present in other issuetypes though - Here's how it looks like on other issue types: "customfield_10008": {
"required": false,
"schema": {
"type": "any",
"custom": "com.pyxis.greenhopper.jira:gh-epic-link",
"customId": 10008
},
"name": "Epic Link",
"key": "customfield_10008",
"hasDefaultValue": false,
"operations": [
"set"
]
} I'm still a bit confused into what goes into Thanks! |
@hugoamvieira its strange that the response doesn't have "Epic Link" field for issue type "Epic". Does the issue link on create work if you manually add |
@ankitpokhrel Actually, yep. I set it up like this: epic:
name: "customfield_10008"
link: "customfield_10008" And it ended up working! |
Hopefull this helps someone. After running Jira Init, this is how my config looked (after changing project type to board:
id: 1619
name: <project_name>
type: kanban
epic:
name: customfield_12271
link: ""
installation: Local
issue:
fields:
custom:
...
- name: Epic Link
key: customfield_12270
schema:
datatype: any
...
project:
key: <project_key>
type: classic
... The
I noticed that the epic:
name: customfield_12270
link: customfield_12270 All in all, in order to get my config to work with an on-prem Jira instance, I did the following:
Hope this helps. |
Thank you - this fixed it for me. |
I'm still having issues linking parents/epics. My epic section looks like this:
but when I set a
Note, I can't just work around this by using |
Describe the bug
Creating an issue of type "Story" and trying to link that to a parent Epic doesn't seem to work.
To Reproduce
-P
flag to link to an epic, as specified here. In my casejira issue create -tStory -PMYEPIC-42 [email protected]
Epic link
- It's set toNone
.Expected behavior
Expected the task to be linked to
MYEPIC-42
.As an aside, if I set the issue type to Sub-task, it seems to link it to the Epic properly, but the problem is that it doesn't show on the right pane on
jira epic view
. I tried some other types but none worked.jira epic view
seems to list all issue types linked to an epic but Sub-task.The text was updated successfully, but these errors were encountered: