Skip to content
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

"Estimated time" doesn't show on ticket creation. It shows on updates #106

Open
diab303 opened this issue Nov 9, 2016 · 1 comment
Open

Comments

@diab303
Copy link

diab303 commented Nov 9, 2016

Please display the ETA (if entered?) when a ticket is created. It is properly displayed on ticket updates but new tickets don't show them on Slack.

@diab303 diab303 changed the title :Estimated time" doesn't show on ticket creation. It shows on updates "Estimated time" doesn't show on ticket creation. It shows on updates Nov 9, 2016
@diab303
Copy link
Author

diab303 commented Nov 9, 2016

I've added it myself - please feel free to integrate (listener.rb, bottom of controller_issues_new_after_save)

            attachment[:fields] << {
                    :title => I18n.t("field_estimated_hours"),
                    :value => escape(issue.estimated_hours.to_s),
                    :short => true
            } if issue.estimated_hours

            attachment[:fields] << {
                    :title => I18n.t("field_due_date"),
                    :value => escape(issue.due_date.to_s),
                    :short => true
            } if issue.due_date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant