-
Notifications
You must be signed in to change notification settings - Fork 20
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
Error pulling project tickets since CW Update #134
Comments
Further to the above. I've found that in the API logs, it looks like its trying to look up the ticket as though it was a service ticket, but the API needs to be looking at in in the project area. Perhaps they made changes to the API?
If i log in in by browser and change service to project, i get data. |
For security reasons we no longer return project tickets with the ticket
endpoint. For project tickets you have to hit the project ticket endpoint.
Let me know if you run into any issues! Note for legacy reasons we kept the
TicketType field but it only supports a type of Ticket now.
…On Fri, Jun 21, 2019 at 7:39 AM justinDJC ***@***.***> wrote:
Further to the above.
I've found that in the API logs, it looks like its trying to look up the
ticket as though it was a service ticket, but the API needs to be looking
at in in the project area. Perhaps they made changes to the API?
404 (NotFound) GET
https://portal.djc.com.au/v4_6_release/apis/3.0/service/tickets/473050
If i log in in by browser and change service to project, i get data.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#134?email_source=notifications&email_token=AAB4WFX6IGXH5RSXQBFY6VDP3S4WJA5CNFSM4HTQVIHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYIHMAA#issuecomment-504395264>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB4WFWVWXXKUA2LET7T253P3S4WJANCNFSM4HTQVIHA>
.
|
@justinDJC Sorry for the delay on this, I should have a patch in for this sometime this week or next week. |
Legend. Thanks mate. |
@justinDJC Still delayed. We're stuck on 2019.1 currently due to our server still being 2008r2. Currently working to figure out a migration plan with CW, and once that's done I'll have an update in for this. |
No stress at all mate. Thanks for the update :) |
We're finally on it. I'll have an update for this sometime this week, sorry for the delays. |
@justinDJC Bit of an idiot and could've had this workaround for you a while ago, sorry. If you set functions.php to have |
Hi Mate! No stress at all. I gave your quick fix a go and the error changed to: Notice: Undefined property: stdClass::$dateEntered in -------/cw-slack/cwslack.php on line 776 Line 776 is: $date=strtotime($dataTData->_info->dateEntered); //Convert date entered JSON result to time. I'll await your update :) |
@justinDJC Updated files should correct those issues. Replace the main cwslack file, incoming, timealerts, and time. I also updated functions to correctly say 2019.2 for API version |
Hiya!
Fantastic script, very useful.
having some issues since updating to 2019.3, specifically with /t command on our project tickets. Normal tickets work fine.
Is the result we get. Enabling debug mode, the output is:
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: