youngmon/atlassian-qna huggingface dataset:
Transcoding JIRA issue video attachments
Asked by Kukk:

Hello,

How could i achieve this?

I have not tried it yet, just a thought.

I was thinking of using Jira automation, to detect attachment.

Download it via API, send to to some cloud transcoding service.

Get it back and add it to issue, deleting the original file.


Answers:
author: Darryl Lee
body: Hey [@Kukk](/t5/user/viewprofilepage/user-id/1785209) I love this idea. Unfortunately I don't think it can be done with ***only*** Jira Automation.

* Automation doesn't support adding attachments, as documented [here](https://community.atlassian.com/t5/Automation-questions/Add-Attachment-through-automation-after-issue-creation/qaq-p/2096841) and [here](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Automatically-attach-file-with-Automation-for-Jira-in-Jira-Cloud/qaq-p/1177934)
  * Also, I'm not even sure how they would implement this
    * File picker dialog so you can upload files to Automation (stored where?) so that certain attachments (example: PDF form that needs to be filled out?) can ALWAYS be added to an issue?
    * Add option to "add attachment from URL"? Would it support authentication?
* Automation doesn't support SENDING attachments, at least not as binary data. You **can** get the URL for the attachment as {{content}} for each {{attachment}}, as mentioned [here](https://community.atlassian.com/t5/Jira-Software-questions/Can-I-use-Smart-Values-to-pass-attachment-links-from-blocker-to/qaq-p/1636277).

However, if you were able to set up your own external service, you have Jira [Send Web Request](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request) to it including the following information:

* Issue Key
* Attachment Link

Your service could then download the attachment (you would need to use an API key) and then transcode it (or send it to a transcoding service), and then [make an API call](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post) back to Jira to upload the new file.

HUH, if you're familiar with React, it looks like maybe maybe you could use Forge to do this: <https://developer.atlassian.com/platform/forge/automation-with-forge/#extending-automation-with-forge>

Let us know if you if you end up implementing something like this!

comments: author: Kukk
body: Thanks a lot for really quick and thorough answer.

Forge looks promising.

I will work on this project in 4-5 months, just getting intel.

It seems that it might work with automation and Jira cloud API

1. API call to get issue data

3. Parse the response, see if attachment format is correct.

2. Get latest attachment link ( as you said) - this is direct download link

3. Make a web request in automation to external cloud transcoding service with that link.

4. Get response, link to file maybe?

5. Use jira Cloud API to add the attachment ,need to look into this, how exactly works, what's the body, and can just a link to video work here.


Tags: jira
automatisering reageert niet.. hoe nu verder?
Asked by Chris:

ik krijg mijn kaarten binnen via mail/Sendboard. dit werkt al maanden super goed.  
nu wil ik klanten mailen vanuit Trello/Sendboard wat werkt!

issue: Ik heb een automatisering regel gebouwd waarin alle reacties van klanten op een bestaande kaart in een specifieke lijst geplaatst moeten worden zodat het opvalt wanneer er een reactie binnen komt.

Maar er gebeurt helemaal niets door deze automatisering..

<br />

Dit moet gebeuren zonder dat mijn nieuwe orders / kaarten hierbij betrokken worden.  

zie bijlage voor automatisering regel  
![Schermafbeelding 2024-02-27 131207.png](/t5/image/serverpage/image-id/308900i4187DD137F5D2A7C/image-size/large?v=v2&px=999 "Schermafbeelding 2024-02-27 131207.png")


Answers:
author: Christl_Email for Trello
body: Hi [@Chris](/t5/user/viewprofilepage/user-id/5439610) ?

Christl from SendBoard here, makers of the Email for Trello Power-Up.

You are almost there, I would suggest using email as one word, no hyphen. Like this:

? \[Email\]

Give it a try and let me know if it works!

comments: author: Chris
body: [@Christl_Email for Trello](/t5/user/viewprofilepage/user-id/4784982)   
YEAHHH thank you so much!! thats the solution  
instead of E-mail it was Email.  

Thanks for your help!!


author: Christl_Email for Trello
body: You are welcome ?

Feel free to reach out if we can help with anything else - hello@sendboard.com


Tags: sendboard

trello
How to provide preformatted text for Jira issue? (avoid smart value interpretation)
Asked by Jeff Shepherd:

I have an automation that creates a Jira Issue. In the Description I want to have some text that is preformatted. The markdown for this is double braces (e.g. {{monospaced text}} ) but that is also the format for smart values. How do I get the automation to pass the double braces onto the issue description and treat the text as preformatted rather than a smart value? I've tried various escaping techniques (\\{{, {\\{, {{{{) but they aren't working.


Answers:
author: Kalyan Sattaluri
body: Hello [@Jeff Shepherd](/t5/user/viewprofilepage/user-id/4140916)

Please try below syntax

    {{=<% %>=}} {{monospaced text}} <%={{ }}=%>

    Reference: https://stackoverflow.com/questions/11042926/how-does-one-use-a-literal-in-a-mustache-template

comments: author: Jeff Shepherd
body: That works. Thank you!


Tags: escape

jira

preformatted

smart-value

text
How to run a script in jira automation?
Asked by Jamshaid:

I need to run a script to perform some changes on the values of a custom fields by splitting the value based on a specific string. How do I run such script in jira automation?

Thanks


Answers:
author: Darryl Lee
body: Hi [@Jamshaid](/t5/user/viewprofilepage/user-id/4092272) --

So Jira Automation doesn't support running scripts (Bash, Python), but it might be able to do what you want using built-in functionality.

If this is a one-time thing you need to run, you could use a [Manual Trigger.](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Manual-trigger-from-issue)

And then to update a custom field value, you would use the [Edit Issue](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Edit-issue) action.

Within the [text field Smart Value functions](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#split-String-separator-), there is a [split](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#split-String-separator-), which might help you accomplish what you are trying to do.

If you need more assistance, please provide the specifics, and we can help.

comments: author: Jamshaid
body: [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322) thanks for responding. I need to split this value

52-CT83 that is in custom field PROJ to 56 and CT83 and set 56 to a custom field. How do I do this using automation?

Thanks


author: Jamshaid
body: Thanks to the hint by [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322) , I have got it working with the following flow

![123.png](https://community.atlassian.com/t5/image/serverpage/image-id/309273iFB8BF43A49850D6E/image-size/large?v=v2&px=999 "123.png")

comments: author: Darryl Lee
body: Glad to see you got it working! Sorry I misunderstood what you meant by "running a script". I'd appreciate if you could accept my answer below, since it did lead you to the **split()** command that you were looking for.


author: S Sajeed Ahamad
body: Hi, I am a JIRA Developer and part-time Freelancer. I provide support for all types of Cloud and Data Center scripting solutions, including Groovy and SIL. I specialize in Listeners, Behaviors, Conditions, Validators, and Custom Post Functions. If you need assistance, feel free to contact me on WhatsApp at **+17866876777** or via email at **freelancerjira@gmail.com** .  

you can reach out to me i will solve your problem
How to set must input some nessarry text info before modify a filed?
Asked by Chen Qiu:

I want to require users to fill in some mandatory information when modifying the component field. Can Jira pop up a form for users to fill in the relevant information before successfully modifying component.

![screenshot-20240226-150112.png](https://community.atlassian.com/t5/image/serverpage/image-id/308563i00BE61F73CCD7959/image-size/large?v=v2&px=999 "screenshot-20240226-150112.png")


Answers:
author: Darryl Lee
body: Hey [@Chen Qiu](/t5/user/viewprofilepage/user-id/5438294) and [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) --

Bill is quite right that Automation isn't the right tool here.

But I wanted to point out that Chen' screenshot and description indicates that they want to force a pop-up when somebody tries to edit the Component field ***while viewing the ticket***.

Jira simply doesn't have a mechanism for that out of the box.

For years, the best you could do was:

* Disable editing of the Component field on the View Screen for this Issue Type/Project.
* Create a Workflow transition whose only purpose is to allow editing of the Component field
* Require a comment/other fields in that transition

This is detailed here: [How can I control the editing of issue fields via workflow?](https://confluence.atlassian.com/jira/how-can-i-control-the-editing-of-issue-fields-via-workflow-149834.html)

I feel like \*maybe\* you could hack something together with [Behaviours](https://docs.adaptavist.com/sr4js/latest/features/behaviours/behaviour-limitations), such that if somebody tries to make a change to Components, it makes other fields be required? But I'm not 100% sure this is possible.

comments: author: Chen Qiu
body: Thanks for your reply. It's very usefull.


author: Rick Westbrock
body: Huh, I thought that Behaviours only worked on issue create and issue edit was not yet supported due to limitations on the APIs but I don't see that listed on the constraints page any longer.


author: Bill Sheboy
body: Hi [@Chen Qiu](/t5/user/viewprofilepage/user-id/5438294) -- Welcome to the Atlassian Community!

You have posted this question in the automation area, but what you describe is not possible with automation rules.

Rules trigger *after some action has occurred*, not before or during the action. A rule could detect the component change and check fields, notifying the user afterwards.

Using workflow validators could do what you ask to prevent setting the field if other fields are not completed.

Kind regards,  
Bill

comments: author: Chen Qiu
body: Thanks a lot. I got it.
Link duplicate or similar issues using summary string
Asked by Elizabeth Jones:

I have a single project where we collect feedback. I would like to have automation run anytime new feedback is submitted and perform similarity matching and link any potentially related issues already in the backlog to the most recent issue submission to be verified by a human at a later date. I have scoured the community but wasn't able to find what I was looking for and have been unsuccessful in building any automation to do this to date. Does anyone know if this is possible and if so what steps might be required to build this out? Thanks!


Answers:
author: Kalyan Sattaluri
body: \<EDIT\>

I misunderstood ask here by [@Elizabeth Jones](/t5/user/viewprofilepage/user-id/4774578) and below is not relevant /not needed, but I will leave below, though incorrect, for others who may have similar use case but ended up here.

*** ** * ** ***

Below rule example is to link lookup issues to trigger'ed issue in Cloud edition.

Given an issue is created, it will link (relates to) to others with similar summary, to the issue which was created.

You could further refine it to limit summary search or add additional clauses or change link type of course.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/309060i9A515EE1218EBF94/image-size/large?v=v2&px=999 "image.png")

If we want to do the hard way, we could do advanced branch and link them manually, but end result is the same as above.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/308461i4ACA42E192AE0E75/image-size/large?v=v2&px=999 "image.png")


author: Bill Sheboy
body: Hi [@Elizabeth Jones](/t5/user/viewprofilepage/user-id/4774578)

I seem to recall there is a Jira Service Management (JSM) feature which supports finding "similar" text values, including in automation rules, but that feature does not exist for other Atlassian products.

If you have a set of known keywords / phrases, those text strings could be checked with JQL and rules. You may want to investigate if there any features like this in the Atlassian Marketplace; I would expect they would need to continually poll the data to find the similar things.

Kind regards,  
Bill
How do I create a rule to automatically assign a hard coded value to a field in Jira?
Asked by John Chiappetta:

I want to be able to assign a value to a field that will stay constant every time we create a new issue. For example, we have a field called application and when a new Jira issue is created, I would want to application field to be updated to "Blackhawk". Just need to know the steps. Thanks in advance.

Ghostrider


Answers:
author: John Funk
body: Hi John,

Create a rule with an Issue Created trigger.

Then add any Conditions needed. If this happens every time the an issue is created, but only on a certain project, then make it a single project rule and you wouldn't need any conditions - unless it only happens for certain issue types, for example.

After any needed Conditions, then add an action for Edit Issue.

Select the Application and then put Blackhawk in the blank are for the field.

comments: author: John Chiappetta
body: Thanks John, this is exactly the answer I was looking for John as i followed your steps and it worked like a champ!!! Thanks again for your help in this matter and for providing the workflow in your answer!!!


author: John Funk
body: Glad it helped. And you are welcome.


author: Kalyan Sattaluri
body: [@John Chiappetta](/t5/user/viewprofilepage/user-id/5125100)

Constructive criticism - Please take a moment to look around the forums to learn how to ask a question.

Your post tell us nothing about your familiarity with automation nor what this field type is.

I would expect you to tell what this field is where you want to hard code "Blackhawk". Is it a drop down or a text field. If text field, what is the name? If Dropdown, do you know the ID of the value. Have you started this rule or you want us to start from scratch. You know, the basics to help you.

comments: author: John Chiappetta
body: Kaylan, I am glad you replied, but your answer has ZERO value in providing me insight on the steps. Sounds like you were a bit upset that I did not look around the forum, so assumming I did not follow your way of asking for help seems a bit ironic, in that you want to criticize someone with really weak assumptions and limited knowledge based on the pre-requisites sited in your response. I would strongly recommend you enroll in Empathy Workshops and learn how to give help. Constructive Criticism when provided correctly balances tone, options to how to provide solutions, and is given with a servant-leader mindset. Practice this with others before you give advice on this site. Funny , my post did provide enough for a tenured rep Atlassian to know what I was looking for.


Tags: rule
How to send a web request from Jira Automation to Tempo REST API v4?
Asked by Christoph P?per:

We're using Jira Cloud with Tempo Timesheets. I'm an admin for both.

Upon a certain trigger in Jira Software, I want to automatically send a [web request](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Send-web-request) to the [Tempo REST API](https://apidocs.tempo.io) and handle the result.

In its configuration pages, Tempo offers two authentication methods with different setting required and credentials generated:

* [REST API integration](https://help.tempo.io/timesheets/latest/using-rest-api-integrations)
  * *Name*
  * *Expiration* -- 30, 60 or 90 days
  * *Access Scope* -- full or custom
  * ? single *Token*
* [OAuth 2.0 Authentication](https://help.tempo.io/timesheets/latest/using-oauth-2-0-authentication)
  * *Name*

  * *Redirect URL* -- the documentation is silent on what to enter here

  * *Client Type*

  * *Authorization Grant Type*

  * *? Client ID*
  * *? Client Secret*

Which one should I use in Jira Cloud Automation and how do I need to configure the Web Request Action exactly?

Since I'm in Europe, I'm using the base URL *<https://api.eu.tempo.io/4/>* and append the respective end point from the documentation.

I tried the REST API integration with full access using a GET request to ./*accounts*. The request body is left empty. I added custom headers:

* key "Authorization" with value "Bearer *TheVeryLongSecretTokenGeneratedByTempo* "
  * I also tried without "Bearer ".
* key "Accept" with value "application/json"

Yet, I get a 401 response. :(


Answers:
author: Christoph P?per
body: Okay, apparently it helps to write it down. I just tried it again and now it seems to work. The only thing I changed was using the generic base URL <https://api.tempo.io/4/>.

comments: author: J-C
body: Can you clarify which of [REST API integration](https://help.tempo.io/timesheets/latest/using-rest-api-integrations) or [OAuth 2.0 Authentication](https://help.tempo.io/timesheets/latest/using-oauth-2-0-authentication) you used and what change you did ?

I have been using the following https://*domain* .atlassian.net/plugins/servlet/ac/io.tempo.jira/oauth-authorize/?client_id=*clientid* \&redirect_uri=<https://api.tempo.io/4/> without success.

Thanks


Tags: rest-api

tempo
Updating custom fields should post a comment
Asked by Marcus:

Hello,

We have two custom fields of the date picker type and would like to automatically notify customers whenever the fields are updated. How could this be setup?

Also we support two languages and I cannot figure out how to pull info from the default "Request Language" field into the If/Else part of the rule.

We are using Jira-Service-Desk Cloud.

Appreciate any help

Regards


Answers:
author: Darryl Lee
body: Hi [@Marcus](/t5/user/viewprofilepage/user-id/3209077) -

So you'd want to use the [Field Value Changed Trigger](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Field-value-changed)

Now to check a field value, you'd normally you'd want to to use an [Issue Fields Condition](https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#Issue-fields-condition) to check the "Request Language", but ah, I don't have that available, so it must be because that field is "special":

<https://community.atlassian.com/t5/Jira-Service-Management-articles/Language-Support-and-Request-language-field-on-Service/ba-p/1860874>

Great. :-/

So then it looks like we'll have to use a [Smart Values Condition.](https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#--smart-values---condition)

I had to do the following:

* Find the "Request Language" [custom field's ID](https://confluence.atlassian.com/jirakb/how-to-find-any-custom-field-s-ids-744522503.html) on my instance.
* Once I had that in hand, I needed to see what that Smart Value looks like, so I used the Log action to see what {{customfield_10045}} **(AGAIN I believe this is specific to my instance - you have to follow the instructions above to find your instances own ID for the field)** returns, which was this:
  * {languageCode=es, displayName=Spanish}

So then, putting it all together, you can create a Smart Values Condition that looks like this:

![Screenshot 2024-02-22 at 3.33.57 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/308231iBA214884DE16CA2C/image-size/large?v=v2&px=999 "Screenshot 2024-02-22 at 3.33.57 PM.png")

Or this:

![Screenshot 2024-02-22 at 3.34.02 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/308230i45F0B4696CDD640A/image-size/large?v=v2&px=999 "Screenshot 2024-02-22 at 3.34.02 PM.png")

Again, that customfield ID is UNIQUE TO MY INSTANCE (I think).


Tags: jira-cloud

jira-service-desk-cloud
Transition screen
Asked by Pim Vincentie:

Hi Community,

I have a question regarding the transition screen.

In automation I get the following error:

**Transition issue**   
Unknown fields set during transition. Field may not be on transition screen. Fields ignored -  
Assignee (assignee)

The strange thing is, I don't do anything with the assignee in this automation rule.

Any idea on how to find the screen it is referring to? In the Workflow, editing the transition I couldn't find i.

Thanks


Answers:
author: Tansu Akdeniz
body: Hi [@Pim Vincentie](/t5/user/viewprofilepage/user-id/1919692)

Please check this article:

[Error "Unknown fields set during transition. Field may not be on transition screen. Fields ignored -" seen on Automation for Jira](https://confluence.atlassian.com/jirakb/error-unknown-fields-set-during-transition-field-may-not-be-on-transition-screen-fields-ignored-seen-on-automation-for-jira-1235851091.html)

Can you please re-check your rule and share here if possible? Assignee might be set during transition operation in your rule.

comments: author: Pim Vincentie
body: Hi all,

A tat late but I think I found the cause.

The assignee was set twice. Once during the transition step and once after.

Setting a field during transition is only possible if it's on the screen I guess.

See the audit log.

Will let it run for some days. If you have another remark on this setup, please let me know, thanks!

![Scherm?afbeelding 2024-03-12 om 19.48.27.png](https://community.atlassian.com/t5/image/serverpage/image-id/311633i22A27663F7654E2B/image-size/large?v=v2&px=999 "Scherm?afbeelding 2024-03-12 om 19.48.27.png")![Scherm?afbeelding 2024-03-12 om 19.48.12.png](https://community.atlassian.com/t5/image/serverpage/image-id/311634i1B04958580FFA3EC/image-size/large?v=v2&px=999 "Scherm?afbeelding 2024-03-12 om 19.48.12.png")


author: Jehan Bhathena
body: hi [@Pim Vincentie](/t5/user/viewprofilepage/user-id/1919692) ,

I'll second [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390) 's point. A Screenshot of your automation rule would be quite helpful here.

The error may occur due to multiple reasons, you can check if the automation is allowed to Transition your issue in the first place, if it is allowed then proceed to check the transition manually verifying if any screen is shown, if this works too, then you might want to debug the Workflow Validation and conditions too.
Request new Action: Add Link to Confluence Page
Asked by Etienne Viljoen:

How do we request new features? I have looked and can't find a way to do this, so I'd like to request that Atlassian add a new feature to Jira Automation to enable us to add a new Confluence Link to a Jira ticket.


Answers:
author: Scott Bell
body: Hi [@Etienne Viljoen](/t5/user/viewprofilepage/user-id/3903395)

You can start with \[JAC\](<https://jira.atlassian.com/secure/Dashboard.jspa>), our public issues tracker. From there, you can click Automation to see if someone else has raised a similar idea, add your vote and comment, or raise a new suggestion yourself.  


author: Kseniia Trushnikova
body: Hi [@Etienne Viljoen](/t5/user/viewprofilepage/user-id/3903395),

You can create suggestions in [jira.atlassian.com](https://jira.atlassian.com/secure/Dashboard.jspa). I've found suggestions to add such actions both for Automation Cloud and Data Center:

* <https://jira.atlassian.com/browse/AUTO-289>
* <https://jira.atlassian.com/browse/JIRAAUTOSERVER-113>

There is a workaround in the AUTO-289 comments section on how to link a Confluence page to a Jira ticket using the API. Check this out, it might work for you.